hi Guys, I have the following code for window closing event -------- frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { int exitApp= JOptionPane.showConfirmDialog(null, "Do you really wish to exit the application", "Please Confirm", JOptionPane.YES_NO_OPTION); if (exitApp==JOptionPane.YES_OPTION){ System.exit(0); } } }); --------- When i am closing the window, the message is getting displayed. If i choose NO for closing the window is not remaining. It is just disappearing. I am sure it is not closing. How do i make sure that, the window remains there, when i choose the NO option for the confirmation message??? any suggestions willbe greatly appreciated.
thanks in advance.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.