I have a Jtextfield in the GUI. I want it to be left aligned and always
the start of the text to be visible. But I see that when the text
length is smaller than the Jtextfield width, the text is correctly left
aligned and whole text is visible.
However if the text is longer than the width of textfield, I see the
end of the text visible in the textfield. How can I fix it, so always
the start of text is visible.
Monique Y. Mudama - 22 Jul 2005 20:47 GMT
> I have a Jtextfield in the GUI. I want it to be left aligned and always
> the start of the text to be visible. But I see that when the text
[quoted text clipped - 3 lines]
> end of the text visible in the textfield. How can I fix it, so always
> the start of text is visible.
Is this textfield supposed to be editable? I'd be rather unhappy if I
had to type into a textfield that wouldn't show me the tail end of
what I'm typing.

Signature
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Andrew Thompson - 22 Jul 2005 21:15 GMT
> I have a Jtextfield in the GUI. I want it to be left aligned and always
> the start of the text to be visible.
<http://java.sun.com/j2se/1.5.0/docs/api/java/awt/TextComponent.html#setCaretPosi
tion(int)>
..'0'

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
In Hypno-Vision