Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

JOptionPane.showMessageDialog does not return focus to the applet.  RSS feed

 
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: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please UseOneThreadPerQuestion. Locking this one.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!