public void windowClosing(WindowEvent e) { setVisible(false);  Settings.windowPosX = frame.getLocation().x; Settings.windowPosY = frame.getLocation().y; Settings.windowSizeWidth = frame.getSize().width; Settings.windowSizeHeight = frame.getSize().height;   Settings.save();
public void windowClosing(WindowEvent e) { frame.setVisible(false); saveSettings();
      public void windowClosing(WindowEvent e) { setVisible(false);                // feed last window position to settings                Settings.windowPosX = frame.getLocation().x;                Settings.windowPosY = frame.getLocation().y;                Settings.windowSizeWidth = frame.getSize().width;                Settings.windowSizeHeight = frame.getSize().height;                // save settings                Settings.save();                                die();            }