How can I make frame closing by clicking with mouse on button 'x' in upper right corner of window?
Printable View
How can I make frame closing by clicking with mouse on button 'x' in upper right corner of window?
Just add the following line of code to your Frame's constructor:
setDefaultCloseOperation( EXIT_ON_CLOSE );
-gc