private void formWindowClosed(java.awt.event.WindowEvent evt){
  saveSettings();
  System.exit(0);
}

private void formWindowClosed ( java . awt . event . WindowEvent evt ) { saveSettings ( ) ; System . exit ( 0 ) ; }
saves settings and terminates the application
