• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regain focus after JOptionPane.

 
vladislav peichev
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet that displays a JOptionPane warning message using JOptionPane.showMessageDialog. After displaying the message and clicking OK my applet does not get the focus again. Is there a way to get it? Tried suggested workaround

tried also requestFocusInWindow but none did help. Thanks in advance.
 
vladislav peichev
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See my question above.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please EaseUp and UseOneThreadPerQuestion. Your other thread has been locked.

To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. Also indicate exactly how you are testing the Applet: browser, version, JRE version.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic