Closing a JFrame without using the exit button and without stopping the app
843806Mar 5 2008 — edited Mar 5 2008How do I do this. I want it to be like the JFrame.DISPOSE_ON_CLOSE, but I don't know how to activate that without having you hit the 'x' button in the corner. Or another solution to my problem would be attaching code to a click on the 'x' button.