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.
Note: Most of the Swing API is not thread safe. For details, see Concurrency in Swing, a section in The Java Tutorial.
Related DocumentationFor overviews, tutorials, examples, guides, and tool documentation, please see:
- How to Use Trees, a section in The Java Tutorial
Interface Summary Interface Description MutableTreeNodeDefines 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. RowMapperDefines the requirements for an object that translates paths in the tree into display rows. TreeCellEditorAdds to CellEditor the extensions necessary to configure an editor in a tree. TreeCellRendererDefines the requirements for an object that displays a tree node. TreeModelThe model used by
TreeNodeDefines the requirements for an object that can be used as a tree node in a JTree. TreeSelectionModelThis interface represents the current state of the selection for the tree component.
Class Summary Class Description AbstractLayoutCacheWarning: Serialized objects of this class will not be compatible with future Swing releases. AbstractLayoutCache.NodeDimensionsUsed by
AbstractLayoutCacheto determine the size and x origin of a particular node.
DefaultMutableTreeNodeis a general-purpose node in a tree data structure.
DefaultTreeCellRendererDisplays an entry in a tree. DefaultTreeModelA simple tree data model that uses TreeNodes. DefaultTreeSelectionModelDefault implementation of TreeSelectionModel. FixedHeightLayoutCacheNOTE: This will become more open in a future release. TreePath
TreePathrepresents an array of objects that uniquely identify the path to a node in a tree.
VariableHeightLayoutCacheNOTE: This will become more open in a future release.
Exception Summary Exception Description ExpandVetoExceptionException used to stop an expand/collapse from happening.