Question: To ensure that a Java GUI application exits properly when its main window is closed, simply use this statement: Answer listed on site is wrong
To ensure that a Java GUI application exits properly when its main window is closed, simply use this statement: Answer listed on site is wrong
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
I am not sure why it is wrong.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
