Package javax.swing.tree
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 Documentation
For overviews, tutorials, examples, guides, and tool documentation, please see:- How to Use Trees, a section in The Java Tutorial
- Since:
- 1.2
Interface | Description |
---|---|
MutableTreeNode | 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. |
RowMapper | Defines the requirements for an object that translates paths in the tree into display rows. |
TreeCellEditor | Adds to CellEditor the extensions necessary to configure an editor in a tree. |
TreeCellRenderer | Defines the requirements for an object that displays a tree node. |
TreeModel | The model used by |
TreeNode | Defines the requirements for an object that can be used as a tree node in a JTree. |
TreeSelectionModel | This interface represents the current state of the selection for the tree component. |
Class | Description |
---|---|
AbstractLayoutCache | Warning: Serialized objects of this class will not be compatible with future Swing releases. |
AbstractLayoutCache.NodeDimensions | Used by |
DefaultMutableTreeNode | A |
DefaultTreeCellEditor | A |
DefaultTreeCellRenderer | Displays an entry in a tree. |
DefaultTreeModel | A simple tree data model that uses TreeNodes. |
DefaultTreeSelectionModel | Default implementation of TreeSelectionModel. |
FixedHeightLayoutCache | NOTE: This will become more open in a future release. |
TreePath |
|
VariableHeightLayoutCache | NOTE: This will become more open in a future release. |
Exception | Description |
---|---|
ExpandVetoException | Exception used to stop an expand/collapse from happening. |
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/tree/package-summary.html