fileMenu.addSeparator();
  public CSMART() {    setTitle("CSMART");    // Setup the database parameters.    dbConfig = Parameters.findParameter(DBUtils.DATABASE);    dbName = Parameters.findParameter(DBUtils.USER);    dbPassword = Parameters.findParameter(DBUtils.PASSWORD);          //    CSMART.inDBMode(true);    JMenuBar menuBar = new JMenuBar();    getRootPane().setJMenuBar(menuBar);    JMenu fileMenu = new JMenu(FILE_MENU);    fileMenu.setToolTipText("Create new workspace or quit.");    JMenuItem newMenuItem = new JMenuItem(NEW_MENU_ITEM);    newMenuItem.addActionListener(this);    newMenuItem.setToolTipText("Create a new workspace.");    fileMenu.add(newMenuItem);    JMenuItem dbConfigMenuItem = new JMenuItem(DBCONFIG_MENU_ITEM);    dbConfigMenuItem.setToolTipText("Configure the database.");    dbConfigMenuItem.addActionListener(new ActionListener() {      public void actionPerformed(ActionEvent e) {	dbConfigMenuItem_actionPerformed();      }    });    // Don't allow database configuration for now    //    fileMenu.add(dbConfigMenuItem);    JMenuItem exitMenuItem = new JMenuItem(EXIT_MENU_ITEM);    exitMenuItem.addActionListener(this);    exitMenuItem.setToolTipText("Exit");    fileMenu.add(exitMenuItem);    windowMenu = new JMenu(WINDOW_MENU);    windowMenu.setToolTipText("Display selected window.");    JMenu helpMenu = new JMenu(HELP_MENU);    for (int i = 0; i < helpMenuItems.length; i++) {      JMenuItem mItem = new JMenuItem(helpMenuItems[i]);      mItem.addActionListener(this);      helpMenu.add(mItem);    }    menuBar.add(fileMenu);    menuBar.add(windowMenu);    menuBar.add(helpMenu);    toolBar = new JToolBar();    toolBar.setLayout(new GridLayout(1, 5, 2, 2));    getContentPane().add("North", toolBar);    organizer = new Organizer(this);    organizer.addTreeSelectionListener(this);    getContentPane().add("Center", organizer);    for (int i = 0; i < views.length; i++) {      JButton button = makeButton(views[i], iconFilenames[i]);      button.setHorizontalTextPosition(JButton.CENTER);      button.setVerticalTextPosition(JButton.BOTTOM);      button.addActionListener(this);      button.setToolTipText(tooltips[i]);      // disable experiment checker      if (i == 1)	button.setEnabled(false);      toolBar.add(button);    }    enableMonitorTool(false);    enableExperimentTools();    // if user closes this window, quit    addWindowListener(new WindowAdapter() {      public void windowClosing(WindowEvent e) {	exit();      }    });    NamedFrame.getNamedFrame().addObserver(this);    pack();    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();    int w = getWidth();    int h = getHeight();    setSize(w, h);    setLocation((screenSize.width - w)/2, (screenSize.height - h)/2);    setVisible(true);  }