updateExperimentEditability();
  public void exitMenuItem_actionPerformed(AWTEvent e) {    updateExperimentEditability();    stopExperiments();    updateExperimentControls(experiment, false);    // If this was this frame's exit menu item, we have to remove    // the window from the list    // if it was a WindowClose, the parent notices this as well    if (e instanceof ActionEvent)      NamedFrame.getNamedFrame().removeFrame(this);    dispose();  }