You should be able to call requestFocus() on the JTextField.
Ravi Kanth D
posted 16 years ago
I tried but doesn' work. This is what I am doing...please let me know if I am wrong: In focusLost event, I said if length() is < 4 then show an error message on the bottom text area...and requestFocus() When I do not enter a value in first control and click on the second control...it does display the error message correctly...but cursor is still in the second control... I want it to come back to first control. How do I do it? Thanks. Ravi.