Provides classes and interfaces for dealing with
javax.swing.JTree. You use these classes and interfaces if you want control over how trees are constructed, updated, and rendered, as well as how data associated with the tree nodes are viewed and managed.
Related DocumentationFor overviews, tutorials, examples, guides, and tool documentation, please see:
- How to Use Trees, a section in The Java Tutorial
ClassDescriptionWarning: Serialized objects of this class will not be compatible with future Swing releases.Used by
AbstractLayoutCacheto determine the size and x origin of a particular node.A
DefaultMutableTreeNodeis a general-purpose node in a tree data structure.A
TreeCellEditor.Displays an entry in a tree.A simple tree data model that uses TreeNodes.Default implementation of TreeSelectionModel.Exception used to stop an expand/collapse from happening.NOTE: This will become more open in a future release.Defines the requirements for a tree node object that can change -- by adding or removing child nodes, or by changing the contents of a user object stored in the node.Defines the requirements for an object that translates paths in the tree into display rows.Adds to CellEditor the extensions necessary to configure an editor in a tree.Defines the requirements for an object that displays a tree node.The model used by
JTree.Defines the requirements for an object that can be used as a tree node in a JTree.
TreePathrepresents an array of objects that uniquely identify the path to a node in a tree.This interface represents the current state of the selection for the tree component.NOTE: This will become more open in a future release.