Hello, i tried to add a WindowStateListener to one of the app frames.

JFrame.getFrames() … frame[0].addWindowState…

But i dont get any state changes.

i want to execute some code before the App closes by clicking on the frames closebutton.

how to do it?

override the destroy() method and put the code there (don’t forget to call super.destroy())

thx :slight_smile: