/** * Creates a new instance of ExplorerTreeNode. * * @param userObj the object in the tree * @param m the tree model */ public ExplorerTreeNode(Object userObj, ExplorerTreeModel m) { super(userObj); this.model = m; if (userObj instanceof Diagram) ((Diagram) userObj).addPropertyChangeListener(this); }