Unfocus on all JTextFields
How do i change the focus to be on a different JTextField? Currently when
my application loads, it is picking (what appears to be) a random
JTextField to set focus to!
I've tried
text.setFocusable(true);
text.requestFocusInWindow();
text.requestFocus(true);
text.requestFocus();
but no luck here. I've also tried How to UnFocus a JTextField but i
haven't had any luck with this working either.
The reason why I would like to not focus on the JTextFields is to avoid
the hints from not appearing when the application first loads. See image:
As you can see from the image, there is no hint on one of the JTextFields...
Any ideas? Thanks in advance..
No comments:
Post a Comment