((ConsoleTreeObject)treeNode.getUserObject()).isNode())
((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();	  DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)o;	  if (treeNode.isRoot() ||	      ((ConsoleTreeObject)treeNode.getUserObject()).isNode())	    return false;	}	return super.isCellEditable(e);      }