Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

JOptionPane.showMessageDialog does not return focus to the applet.

 
vladislav peichev
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have an applet which displays a warning message using JOptionPane.showMessageDialog. After closing the message box with OK the applet does not get the focus again. Does anyone know how to force the applet to regain the focus. requestFocus and requestFocusInWindow methods don't help. Tried passing the applet or its top level parent frame without success. Thanks in advance.
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please UseOneThreadPerQuestion. Locking this one.
 
    Bookmark Topic Watch Topic
  • New Topic