![]() |
Focus on JTextField
hello,
How can I set the cursor at the desired TextField? By defualt it sets in the first TextField. I want to set in to the secon TextField?What is the method using in Java? like any setFocuse()? pls reply.. |
Re: Focus on JTextField
You need to call requestFocus() on the JTextField.
|
Re: Focus on JTextField
Please look at requestFocus and requestFocusInWindow methods of the JComponent from the Java API docs : Focus Request Methods .
It is generally advised to use the later and avoid the requestFocus method whenever possible. Amit Ray. |
Re: Focus on JTextField
Quote:
|
| All times are GMT +5.5. The time now is 21:18. |