Re: How to restrict user from clicking or continue working with the applet when a dialog box is thrown to him
Posted By:
sam_pitroda
Posted On:
Wednesday, October 31, 2001 10:19 AM
note that JDialog has a couple of constructors and one takes two parameters.
1. parent frame,
2. a boolean for modal
When you launch your dialog from applet,
use:
yourDialog = new YourDialog((JOptionPane.getFrameForComponent(this), true );
this will make it modal.
Re: How to restrict user from clicking or continue working with the applet when a dialog box is thrown to him
Posted By:
sam_pitroda
Posted On:
Wednesday, October 31, 2001 10:19 AM
note that JDialog has a couple of constructors and one takes two parameters.
1. parent frame,
2. a boolean for modal
When you launch your dialog from applet,
use:
yourDialog = new YourDialog((JOptionPane.getFrameForComponent(this), true );
this will make it modal.
Re: How to restrict user from clicking or continue working with the applet when a dialog box is thrown to him
Posted By:
John_Zukowski
Posted On:
Monday, October 29, 2001 10:11 PM
Dealing with Modal dialogs is already covered in the FAQs.