private JSplitPane createTreeDisplay(Experiment experiment) {
private JSplitPane createTreeDisplay() {
  private JSplitPane createTreeDisplay(Experiment experiment) {    DefaultMutableTreeNode root =       new DefaultMutableTreeNode(new CommunityTreeObject("Community"));    DefaultTreeModel treeModel = new DefaultTreeModel(root, true) {      public void valueForPathChanged(TreePath path, Object newValue) {        if (newValue == null || newValue.toString().equals("")) return;        DefaultMutableTreeNode node =           (DefaultMutableTreeNode)path.getLastPathComponent();        CommunityTreeObject cto =           (CommunityTreeObject)node.getUserObject();        cto.setLabel(newValue.toString());        nodeChanged(node);      }    };    communityTree = new CommunityDNDTree(treeModel);    treeModelListener = new CommunityTreeModelListener(communityTableUtils);    treeModel.addTreeModelListener(treeModelListener);    communityTree.setExpandsSelectedPaths(true);    communityTree.setCellEditor(treeCellEditor);    communityTree.addTreeSelectionListener(new CommunityTreeSelectionListener(communityTableUtils));    JScrollPane communityScrollPane = new JScrollPane(communityTree);    // attach a mouse listener to the community tree to display menu     MouseListener communityTreeMouseListener = new MouseAdapter() {      public void mouseClicked(MouseEvent e) {        if (e.isPopupTrigger()) displayCommunityTreeMenu(e);      }      public void mousePressed(MouseEvent e) {        if (e.isPopupTrigger()) displayCommunityTreeMenu(e);      }      public void mouseReleased(MouseEvent e) {        if (e.isPopupTrigger()) displayCommunityTreeMenu(e);      }    };    communityTree.addMouseListener(communityTreeMouseListener);    rootMenu = new JPopupMenu();    rootMenu.add(new JMenuItem(newCommunityAction));    communityMenu = new JPopupMenu();    communityMenu.add(new JMenuItem(newCommunityAction));    communityMenu.add(new JMenuItem(viewCommunityInfoAction));    communityMenu.add(new JMenuItem(deleteAction));    communityMenu.add(new JMenuItem(addParameterAction));    parentEntityMenu = new JPopupMenu();    parentEntityMenu.add(new JMenuItem(deleteAction));    entityMenu = new JPopupMenu();    entityMenu.add(new JMenuItem(addParameterAction));    entityMenu.add(new JMenuItem(deleteAction));    DefaultMutableTreeNode hostRoot =       new DefaultMutableTreeNode(new CommunityTreeObject("Hosts"));    JTree hostTree =       new EntityDNDTree(new DefaultTreeModel(hostRoot, true));    hostTree.setExpandsSelectedPaths(true);    hostTree.setCellEditor(noEdit);    JScrollPane hostScrollPane = new JScrollPane(hostTree);    DefaultMutableTreeNode nodeRoot =       new DefaultMutableTreeNode(new CommunityTreeObject("Nodes (unassigned)"));        JTree nodeTree =       new EntityDNDTree(new DefaultTreeModel(nodeRoot, true));    nodeTree.setExpandsSelectedPaths(true);    nodeTree.setCellEditor(noEdit);    JScrollPane nodeScrollPane = new JScrollPane(nodeTree);    DefaultMutableTreeNode agentRoot =       new DefaultMutableTreeNode(new CommunityTreeObject("Agents (unassigned)"));    JTree agentTree =       new EntityDNDTree(new DefaultTreeModel(agentRoot, true));    agentTree.setExpandsSelectedPaths(true);    agentTree.setCellEditor(noEdit);    JScrollPane agentScrollPane = new JScrollPane(agentTree);    JSplitPane paneOne = new JSplitPane(JSplitPane.VERTICAL_SPLIT);    JSplitPane paneTwo = new JSplitPane(JSplitPane.VERTICAL_SPLIT);    JSplitPane paneThree = new JSplitPane(JSplitPane.VERTICAL_SPLIT);    paneThree.setTopComponent(nodeScrollPane);    paneThree.setBottomComponent(agentScrollPane);    paneTwo.setTopComponent(hostScrollPane);    paneTwo.setBottomComponent(paneThree);    paneOne.setTopComponent(communityScrollPane);    paneOne.setBottomComponent(paneTwo);    paneOne.setDividerLocation(100);    paneTwo.setDividerLocation(100);    paneThree.setDividerLocation(100);    addHostsFromExperiment(hostTree, experiment);    addUnassignedNodesFromExperiment(nodeTree, experiment);    addUnassignedAgentsFromExperiment(agentTree, experiment);    return paneOne;  }