In my application, I have a MAIN FRAME. I bring up a non-modal dialog whose parent will be this MAIN FRAME. When user performs a operation on this dialog and if it is not valid then one JOptionDialog is shown that will have the error message and a 'OK' button. This OptionPanes's parent is set to Dialog.
Now this JOptionPane blocks the input for the whole Application. If i want to block the input only for the Dialog. How do we do it?
We have been interested in this issue too, so I was anxious to see the response. As far as I can tell, the JDialog constructors only allow a JFrame or Window as it's "owner", so they cannot be used with JInternalFrame as a parent.