Uses of Class
javax.swing.tree.DefaultMutableTreeNode
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 DefaultMutableTreeNode in javax.swing
Modifier and TypeClassDescriptionstatic class
DynamicUtilTreeNode
can wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary.Modifier and TypeMethodDescriptionstatic void
JTree.DynamicUtilTreeNode.createChildren
(DefaultMutableTreeNode parent, Object children) Adds to parent all the children inchildren
. -
Uses of DefaultMutableTreeNode in javax.swing.tree
Modifier and TypeMethodDescriptionDefaultMutableTreeNode.getFirstLeaf()
Finds and returns the first leaf that is a descendant of this node -- either this node or its first child's first leaf.DefaultMutableTreeNode.getLastLeaf()
Finds and returns the last leaf that is a descendant of this node -- either this node or its last child's last leaf.DefaultMutableTreeNode.getNextLeaf()
Returns the leaf after this node or null if this node is the last leaf in the tree.DefaultMutableTreeNode.getNextNode()
Returns the node that follows this node in a preorder traversal of this node's tree.DefaultMutableTreeNode.getNextSibling()
Returns the next sibling of this node in the parent's children array.DefaultMutableTreeNode.getPreviousLeaf()
Returns the leaf before this node or null if this node is the first leaf in the tree.DefaultMutableTreeNode.getPreviousNode()
Returns the node that precedes this node in a preorder traversal of this node's tree.DefaultMutableTreeNode.getPreviousSibling()
Returns the previous sibling of this node in the parent's children array.Modifier and TypeMethodDescriptionDefaultMutableTreeNode.getSharedAncestor
(DefaultMutableTreeNode aNode) Returns the nearest common ancestor to this node andaNode
.boolean
DefaultMutableTreeNode.isNodeDescendant
(DefaultMutableTreeNode anotherNode) Returns true ifanotherNode
is a descendant of this node -- if it is this node, one of this node's children, or a descendant of one of this node's children.boolean
DefaultMutableTreeNode.isNodeRelated
(DefaultMutableTreeNode aNode) Returns true if and only ifaNode
is in the same tree as this node.