> I am working with a JTextField which contains a string of text
> that is too long to be displayed completely. When the JTextField
> loses focus, the end portion of the text is displayed.
> I would like to have the beginning of the text displayed when losing
> focus.
Add a FocusListener to the JTextField and on focusLost(), call
setCaretPosition( 0 );

Signature
Regards,
John McGrath
Aaron Boxer - 28 Feb 2005 16:38 GMT
Thanks, John!
> > I am working with a JTextField which contains a string of text
> > that is too long to be displayed completely. When the JTextField
[quoted text clipped - 4 lines]
> Add a FocusListener to the JTextField and on focusLost(), call
> setCaretPosition( 0 );