Link to home
Start Free TrialLog in
Avatar of tonus
tonus

asked on

Setting Focus on Joptionpane

I am using JOptionpane.showMessageDialog
 method to display messages in the browser. I don't want the user to access the parent(ie the Applet) without clicking the options in the Joptionpane. Please help me out..
ASKER CERTIFIED SOLUTION
Avatar of expertmb
expertmb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonus
tonus

ASKER

Thanks for the answer given above.
  But my problem is that you can access the components in the Applet(ie parent) even if the JOptionpane appears on the applet.I don't want the user to acces the parent when the focus is on the Joptionpane.
  One more problem is how to set the focus on JDialog.





Avatar of tonus

ASKER

Thanks for the answer given above.
  But my problem is that you can access the components in the Applet(ie parent) even if the JOptionpane appears on the applet.I don't want the user to acces the parent when the focus is on the Joptionpane.
  One more problem is how to set the focus on JDialog in an applet.