• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Focus problem wiht Mac OS

 
prashant gour
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
Campbell Ritchie
Sheriff
Pie
Posts: 50278
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic