| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
JTree
DynamicUtilTreeNode can wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultMutableTreeNode
A
DefaultMutableTreeNode is a general-purpose node in a tree data structure.
|
| Modifier and Type | Field and Description |
|---|---|
protected MutableTreeNode |
DefaultMutableTreeNode.parent
this node's parent, or null if this node has no parent
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultMutableTreeNode.add(MutableTreeNode
Removes
newChild from its parent and makes it a child of this node by adding it to the end of this node's child array.
|
void |
MutableTreeNode.insert(MutableTreeNode
Adds
child to the receiver at
index.
|
void |
DefaultMutableTreeNode.insert(MutableTreeNode
Removes
newChild from 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 index
childIndex.
|
void |
DefaultTreeModel.insertNodeInto(MutableTreeNode
Invoked this to insert newChild at location index in parents children.
|
void |
MutableTreeNode.remove(MutableTreeNode
Removes
node from the receiver.
|
void |
DefaultMutableTreeNode.remove(MutableTreeNode
Removes
aChild from this node's child array, giving it a null parent.
|
void |
DefaultTreeModel.removeNodeFromParent(MutableTreeNode
Message this to remove node from its parent.
|
void |
MutableTreeNode.setParent(MutableTreeNode
Sets the parent of the receiver to
newParent.
|
void |
DefaultMutableTreeNode.setParent(MutableTreeNode
Sets this node's parent to
newParent but does not change the parent's child array.
|