DefaultMutableTreeNode node = organizer.getSelectedNode(); Object userObject = node.getUserObject(); if (userObject instanceof Experiment) runAnalyzer((Experiment)userObject);
JFrame societyMonitorFrame = NamedFrame.getNamedFrame().getToolFrame(SOCIETY_MONITOR); if (societyMonitorFrame == null) runMonitor();
        public void actionPerformed(ActionEvent e) {          DefaultMutableTreeNode node = organizer.getSelectedNode();          Object userObject = node.getUserObject();          if (userObject instanceof Experiment)            runAnalyzer((Experiment)userObject);          else            runAnalyzer();        }