aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes public Dialog(Frame owner, boolean modal) not working as expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "public Dialog(Frame owner, boolean modal) not working as expected" Watch "public Dialog(Frame owner, boolean modal) not working as expected" New topic
Author

public Dialog(Frame owner, boolean modal) not working as expected

Vinnu Reddy
Greenhorn

Joined: Nov 30, 2005
Posts: 1
In Dialog(Frame owner, boolean modal) constructor if we pass the frame instance and modal as "true", the dialog is not blocking input to other
app windows when shown.

I want to make a dialog "modal" for the frame I specify. Is there any other alternative ??

Thanks in Advance,
Vinnu.
todd runstein
Ranch Hand

Joined: Feb 15, 2005
Posts: 64
Hmmmm. Can you post your code? I've used modal=true many times an it certainly renders other frames useless (well, okay, so I can move them around under Linux, but I can't bring them to the front or enter anything in them).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: public Dialog(Frame owner, boolean modal) not working as expected