|
-
Mar 14th, 2002, 01:07 AM
#1
Thread Starter
New Member
Problem associating with window focusing ...
Say, I have a main window with a button inside, and if the user presses on that button, another warning window with an OK button inside will then pop up. Now the question is how can I disallow the user from returning back to the main window unless the OK button on the pop-up window is pressed ? Thanx.
-
Mar 14th, 2002, 01:41 AM
#2
Dazed Member
Pretty sure JOptionpane.showMessageDialog
is modal by default so that would take care
of the problem. If you were creating a dialog
from scratch you would have to pass true
to the constructor to set modal to true.
public JDialog(Frame parent, String title, boolean modal)
Last edited by Dilenger4; Mar 14th, 2002 at 01:48 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|