File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes JOptionPane.showMessageDialog does not return focus to the applet. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply locked New topic
Author

JOptionPane.showMessageDialog does not return focus to the applet.

vladislav peichev
Greenhorn

Joined: Apr 28, 2011
Posts: 22
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

Joined: May 03, 2008
Posts: 3214

Please UseOneThreadPerQuestion. Locking this one.


luck, db
There are no new questions, but there may be new answers.
 
 
subject: JOptionPane.showMessageDialog does not return focus to the applet.
 
Threads others viewed
JOptionPane issue
Passive browser
pop up box - JDialog??
Regain focus after JOptionPane.
Problem with getDocumentBase()
IntelliJ Java IDE