if (fc.getDialogType() == JFileChooser.SAVE_DIALOG)
if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG)
  public String getApproveButtonText(JFileChooser fc)  {    if (fc.getDialogType() == JFileChooser.SAVE_DIALOG)      return saveButtonText;    else      return openButtonText;  }