if (((DefaultMutableTreeNode)o).isRoot())
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)o; if (treeNode.isRoot() || ((ConsoleTreeObject)treeNode.getUserObject()).isAgent())
      public boolean isCellEditable(EventObject e) {	if (super.isCellEditable(e) && e instanceof MouseEvent) {	  TreePath path = hostTree.getPathForLocation(((MouseEvent)e).getX(),						      ((MouseEvent)e).getY());	  if (path == null)	    return false;	  Object o = path.getLastPathComponent();	  if (((DefaultMutableTreeNode)o).isRoot())	    return false;	}	return super.isCellEditable(e);      }