Hi ,
I have the following problem: my application needs to performs some
actions befor it is closed.
Ok, on window closing a dialog appear, but if the user press cancel i
would like to mantain the app
still alive, but it will be closed any way.
Any suggestion?
Thanks,
Jacov
ak - 04 Aug 2004 08:54 GMT
> I have the following problem: my application needs to performs some
> actions befor it is closed.
> Ok, on window closing a dialog appear, but if the user press cancel i
> would like to mantain the app
> still alive, but it will be closed any way.
> Any suggestion?
set JFrame#setDefaultCloseOperation(DO_NOTHING_ON_CLOSE)
and add WindowListener to handle windowClosing events

Signature
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader