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