I want to capture window close(red X right top position) event. I want to display a specified window upon that window based on the event.
Register a WindowListener - specifically, use its windowClosing method:
Invoked when the user attempts to close the window from the window's system menu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With