File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
public Dialog(Frame owner, boolean modal) not working as expected
Joined: Nov 30, 2005
Nov 30, 2005 00:31:00
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,
Joined: Feb 15, 2005
Nov 30, 2005 08:31:00
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
invoking dialog box from Applet results in Hang of IE browser
Focus on JDialog lost
Making a child window modal
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015