if (o instanceof DefaultMutableTreeNode) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) o; if (node == getModel().getRoot()) return false; return true; }
if (o instanceof DefaultMutableTreeNode) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) o; if (node == getModel().getRoot()) return false;  DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode)node.getParent(); Object userObject = parentNode.getUserObject(); if (userObject != null && userObject instanceof Experiment)
    public boolean isDraggable(Object o) {        if (o instanceof DefaultMutableTreeNode) {            DefaultMutableTreeNode node = (DefaultMutableTreeNode) o;	    if (node == getModel().getRoot()) 	      return false; // not draggable if it's the root node	    return true;        }        return false;    }