Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
 
Similar Threads
Focus on JDialog lost
invoking dialog box from Applet results in Hang of IE browser
Modal JWindow
Modal JWindow
Making a child window modal