I have a JFrame
and I would like to know when the close button is clicked for that JFrame
. When the JFrame
is closed my whole project does not close so I want to be able to tell when the user closes that one Frame.
I've tried using methods like as !f.isShowing and !m.f.isActive() but when I close the Frame, what I want to happen doesn't.