Good day!
I\'m developping a small Java Application with NetBeans IDE that extends JFrame. I implemented several ways to close the App, for example pressing Ctrl-Q
setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE )
WindowListener
or WindowAdapter
- overriding either the windowClosing()
or windowClosed()
methods (I forget which) to catch the closing event.setVisible(false)
or dispose()
(as discussed in the comments) at the end.