if (!haveMoreTrials()) { if(log.isWarnEnabled()) { log.warn("CSMARTConsole: WARNING: no more trials to run"); } runButton.setSelected(false); runButton.setEnabled(false); return; }  experiment.setResultDirectory(csmart.getResultDir());  if (experiment.getNodeComponents().length != 0) runTrial();
if (experiment != null) initNodesFromExperiment(); runTrial();
  private void runButton_actionPerformed() {    if (log.isDebugEnabled()) {      log.debug("Hit run button");    }    destroyOldNodes(); // Get rid of any old stuff before creating the new    userStoppedTrials = false;    // this state should be detected earlier and the run button disabled    if (!haveMoreTrials()) {      if(log.isWarnEnabled()) {        log.warn("CSMARTConsole: WARNING: no more trials to run");      }      runButton.setSelected(false);      runButton.setEnabled(false);      return; // nothing to run    }    // set where to store results    experiment.setResultDirectory(csmart.getResultDir());    if (experiment.getNodeComponents().length != 0)      runTrial();  }