int result = JOptionPane.showConfirmDialog(this, "Modify Experiment", "Modify Experiment?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (result == JOptionPane.NO_OPTION) return false;
  private boolean cloneExperiment() {    // ask user to confirm cloning experiment    int result = JOptionPane.showConfirmDialog(this,                                               "Modify Experiment",                                               "Modify Experiment?",                                               JOptionPane.YES_NO_OPTION,                                               JOptionPane.QUESTION_MESSAGE);    if (result == JOptionPane.NO_OPTION)      return false;    // if experiment name is in the database, then ask user for new name    if (ExperimentDB.isExperimentNameInDatabase(experimentName)) {      String name = organizer.getUniqueExperimentName(experimentName);      if (name == null)        return false;      experimentName = name;    }    System.out.println("Cloning experiment: " + experimentName);    experimentId = ExperimentDB.cloneExperiment(experimentId,                                                 experimentName);    trialId = ExperimentDB.getTrialId(experimentId);    cloned = true;    return true;  }