addToTree(communityTree.addNode(null, communityName, "Community", null),
removeAllChildren(communityTree); DefaultMutableTreeNode root = (DefaultMutableTreeNode)communityTree.getModel().getRoot(); addToTree(communityTree.addNode(root, communityName, "Community", null),
  private void displayCommunityInformation() {//     if (log.isDebugEnabled()) {//       log.debug("displayCommunityInformation called");//     }    String communityName = selectCommunityToDisplay();    if (communityName == null)      return;    if (communityName.equals("All")) {      putAllCommunitiesInTree();      return;    }    // display community information in table    communityTableUtils.getAllCommunityInfo(communityName);    communityTree.getModel().removeTreeModelListener(treeModelListener);    // Note that this clears out any communities currently being displayed!    addToTree(communityTree.addNode(null, communityName, "Community", null),              communityName);    communityTree.getModel().addTreeModelListener(treeModelListener);  }