dcsimg
Placing the mouse_cursor in the beginning of a JTextField
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, July 22, 2002 12:46 AM

Hi
A have some problem placing the cursor in the beginning of the text in a JTextField after focus gain.

Any help would be appreciated

-
√łystein

Re: Placing the mouse_cursor in the beginning of a JTextField

Posted By:   Suhanthan_Vanniyasingam  
Posted On:   Wednesday, July 24, 2002 04:16 AM

Y don't you try

text.setSelectionStart(0);

text.setSelectionEnd(0);

after the focus gained.

About | Sitemap | Contact