Link to home
Start Free TrialLog in
Avatar of mdoland
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?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Set the dialog to be undecorated (and therefore unclosable by X )
Avatar of mdoland
mdoland

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial