public void windowCloing(WindowEvent e) { //方法名称写错了改成public void windowClosing(WindowEvent e) { //少了一个字母's’
close()和flush()