setModal « Dialog « Java Swing Q&A





1. the sense of setModal(boolean) in JDialog inherited from Dialog    coderanch.com

if a dialog is modal and appears during the run of an application, then this application waits for the user input to this dialog, blocking all other possibilities for the user to act. the graphical representation on the screen (swing) is layed out in different panes or layeres. normally the programmer needs not to worry about that as its well done ...

2. JDialog setModal() hierarchy    coderanch.com

JDialogs are modal to all top-level components that are their ancestors (as you have discovered). You'll have to "break the chain" at the point that you don't want the dialog to be modal anymore. Just leave out the parent parameter in the constructor of the parent of the dialog. Do you really need the "grandparent" frame to be the parent of ...

3. SetModal on JDialog is reflecting on new instance of API.    forums.oracle.com

In my case while opening "New Instance" of Application, the new instance and its copy, is not sharing anything. Thus they are like separate application. So Is their any bug in by code that's not allowing to work on copy of Application, if Dialog of new instance is being opened, which has setModel(True).