expandBranch(newNode); scrollPathToVisible(new TreePath(newNode.getPath()));
  protected DefaultMutableTreeNode addNode(DefaultMutableTreeNode node,                                           String name, String type,                                           String communityName) {    DefaultTreeModel model = (DefaultTreeModel)getModel();    DefaultMutableTreeNode root = (DefaultMutableTreeNode)model.getRoot();    if (node == null) {      root.removeAllChildren();      model.nodeStructureChanged(root);      node = root;    }    DefaultMutableTreeNode newNode =      new DefaultMutableTreeNode(new CommunityTreeObject(name, type, communityName),				 (type.equals("Root") || 				  type.equals("Host") || 				  type.equalsIgnoreCase("Community")));    model.insertNodeInto(newNode, node, node.getChildCount());    // expand branch below new node and scroll to display new node    expandBranch(newNode);    scrollPathToVisible(new TreePath(newNode.getPath()));    return newNode;  }