Uses of Interface
javax.swing.tree.MutableTreeNode
Packages that use MutableTreeNode
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces for dealing with
javax.swing.JTree.-
Uses of MutableTreeNode in javax.swing
Classes in javax.swing that implement MutableTreeNodeModifier and TypeClassDescriptionstatic classDynamicUtilTreeNodecan wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary. -
Uses of MutableTreeNode in javax.swing.tree
Classes in javax.swing.tree that implement MutableTreeNodeModifier and TypeClassDescriptionclassADefaultMutableTreeNodeis a general-purpose node in a tree data structure.Fields in javax.swing.tree declared as MutableTreeNodeModifier and TypeFieldDescriptionprotected MutableTreeNodeDefaultMutableTreeNode.parentthis node's parent, or null if this node has no parentMethods in javax.swing.tree with parameters of type MutableTreeNodeModifier and TypeMethodDescriptionvoidDefaultMutableTreeNode.add(MutableTreeNode newChild) RemovesnewChildfrom its parent and makes it a child of this node by adding it to the end of this node's child array.voidDefaultMutableTreeNode.insert(MutableTreeNode newChild, int childIndex) RemovesnewChildfrom its present parent (if it has a parent), sets the child's parent to this node, and then adds the child to this node's child array at indexchildIndex.voidMutableTreeNode.insert(MutableTreeNode child, int index) Addschildto the receiver atindex.voidDefaultTreeModel.insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index) Invoked this to insert newChild at location index in parents children.voidDefaultMutableTreeNode.remove(MutableTreeNode aChild) RemovesaChildfrom this node's child array, giving it a null parent.voidMutableTreeNode.remove(MutableTreeNode node) Removesnodefrom the receiver.voidDefaultTreeModel.removeNodeFromParent(MutableTreeNode node) Message this to remove node from its parent.voidDefaultMutableTreeNode.setParent(MutableTreeNode newParent) Sets this node's parent tonewParentbut does not change the parent's child array.voidMutableTreeNode.setParent(MutableTreeNode newParent) Sets the parent of the receiver tonewParent.