return new Object[] { OK_STRING, CANCEL_STRING };
return (optionPane.getWantsInput() ) ? new Object[] { OK_STRING, CANCEL_STRING } : ( optionPane.getMessageType() == JOptionPane.QUESTION_MESSAGE ) ? new Object[] { YES_STRING, NO_STRING, CANCEL_STRING } :  new Object[] { OK_STRING };
  protected Object[] getButtons()  {    if (optionPane.getOptions() != null)      return optionPane.getOptions();    switch (optionPane.getOptionType())      {      case JOptionPane.YES_NO_OPTION:	return new Object[] { YES_STRING, NO_STRING };      case JOptionPane.YES_NO_CANCEL_OPTION:	return new Object[] { YES_STRING, NO_STRING, CANCEL_STRING };      case JOptionPane.OK_CANCEL_OPTION:      case JOptionPane.DEFAULT_OPTION:	return new Object[] { OK_STRING, CANCEL_STRING };      }	    return null;  }