mdoland
asked on
JDialog
I have a JDialog and want either be able to prevent it from being closed by the x in the right corner or I what to be able to catch that it has been done and to perform actions accordingly. What what be the easiest way to handle this?
Set the dialog to be undecorated (and therefore unclosable by X )
ASKER
I use NetBeans and the graphics part there. I cannot find the decorated property there. Instead I tried to set it as the last thing in the ctor. However, it didn't work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.