Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Closing a JFrame without using the exit button and without stopping the app

843806Mar 5 2008 — edited Mar 5 2008
How 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2008
Added on Mar 5 2008
3 comments
255 views