I am validating one text field and showing one message box on putting wrong value in text field. Message box is coming up nicely but focus is remained in text filed where as i want focus should be on OK button of message box.
Any suggestions and thoughts!!!
posted 9 years ago
What are you using as a message box? If you use something like JOptionPane that ought to keep the focus; JOptionPane is "modal." Have you tried the requestFocus() methods for your message box?