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!

How to trigger an action when the red x button at the top corner is pressed

843806Mar 23 2009 — edited Mar 23 2009
My main question is, how can I do something when i close a gui window, specifically by pressing the cross or pressing alt f4? For example, I want to set a counter back to 0 in another gui when I close a gui, how do I do that assuming I have access to the counter in the gui that I want to close?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2009
Added on Mar 23 2009
5 comments
337 views