感觉这两个方法应该都可以windowClosing void windowClosing(WindowEvent e) Invoked when the user attempts to close the window from the window's system menu. --------------------------------------------------------------------------------windowClosed void windowClosed(WindowEvent e) Invoked when a window has been closed as the result of calling dispose on the window.
void windowClosing(WindowEvent e)
Invoked when the user attempts to close the window from the window's system menu.
--------------------------------------------------------------------------------windowClosed
void windowClosed(WindowEvent e)
Invoked when a window has been closed as the result of calling dispose on the window.