code: private void settingsSaveAsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_settingsSaveAsMenuItemActionPerformed
          JFileChooser fc = new JFileChooser();
          if (settingsFile != null) {
              fc.setSelectedFile(settingsFile);
          } else {
              fc.setSelectedFile(DEFAULT_SETTINGS_FILE);
          }
          int returnVal = fc.showSaveDialog(this);
          if (returnVal == JFileChooser.APPROVE_OPTION) {
              settingsFile = fc.getSelectedFile();
              settingsSaveMenuItemActionPerformed(evt);
          }
  
      }
docs: GEN-LAST:event_settingsSaveMenuItemActionPerformed