saveMenuItem.setEnabled(metrics.inputFile != null);
  public void actionPerformed(ActionEvent evt) {    String command = ((JMenuItem)evt.getSource()).getText();    if (command.equals(CLOSE_MENU_ITEM)) {      NamedFrame.getNamedFrame().removeFrame(this);      this.dispose();      return;    }    // save graph into file it was read from    if (command.equals(SAVE_MENU_ITEM)) {      metrics.saveMetrics();      return;    }    if (command.equals(SAVE_AS_MENU_ITEM)) {      metrics.saveAsMetrics();      //saveMenuItem.setEnabled(metrics.hasOutputFile());      return;    }    if (command.equals(REFRESH_MENU_ITEM)) {      metrics.refresh();      return;    }    if (command.equals(HELP_MENU_ITEM)) {      URL help = (URL)getClass().getResource(HELP_DOC);      if(help != null)	Browser.setPage(help);      return;    }    if (command.equals(ABOUT_MENU_ITEM)) {      URL help = (URL)getClass().getResource(ABOUT_DOC);      if(help != null)	Browser.setPage(help);      return;    }  }