Re: 'intercepting' windowClosing event
Posted By:
Mike_Asmar
Posted On:
Tuesday, May 14, 2002 01:14 PM
In your JDialog you can do something with the processWindowEvent like this
protected void processWindowEvent(WindowEvent e)
{
if (e.getID() == e.WINDOW_CLOSING) {
if you want it to close out the window then just do a
super.processWindowEvent(e);
when you are done otherwise, just return and your dialog won't close.
-Mike A.