[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

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..
0
tonus
Asked:
tonus
  • 2
1 Solution
 
expertmbCommented:
hi,
   JOptionPane dlg = new JOptionPane();
   dlg.showMessageDialog(this,"Hello");

the control is on the dialog only, until unless u close the message dialog.

mb...
0
 
tonusAuthor Commented:
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.





0
 
tonusAuthor Commented:
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.





0

Featured Post

SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now