for (int i = 0; i < experimentAction.length; i++) { String s = (String)experimentAction[i].getValue(Action.NAME); if (s.equals("View")) experimentAction[i].putValue(Action.NAME, "Configure");
for (int i = 0; i < experimentAction.length; i++)
  private void configureExperimentMenu(Experiment experiment) {    boolean isEditable = experiment.isEditable();    if (isEditable) {      for (int i = 0; i < experimentAction.length; i++) {	String s = (String)experimentAction[i].getValue(Action.NAME);	if (s.equals("View"))	  experimentAction[i].putValue(Action.NAME, "Configure");	experimentAction[i].setEnabled(true);      }     } else {      for (int i = 0; i < experimentAction.length; i++) {	String s = (String)experimentAction[i].getValue(Action.NAME);	if (s.equals("Rename"))	  experimentAction[i].setEnabled(false);	else if (s.equals("Configure"))	  experimentAction[i].putValue(Action.NAME, "View");      }    }    for (int i = 0; i < experimentAction.length; i++) {      String s = (String)experimentAction[i].getValue(Action.NAME);      if (s.equals("Run")) {	if (experiment.getSocietyComponentCount() != 0 &&	    experiment.isRunnable())	  experimentAction[i].setEnabled(true);	else	  experimentAction[i].setEnabled(false);	break;      }    }  }