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
Threads and Swing,
a section in
The Java Tutorial.
Related Documentation
For overviews, tutorials, examples, guides, and tool documentation, please see:
@since 1.2
@serial exclude
|
Java Source File Name | Type | Comment |
AbstractLayoutCache.java | Class | Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
DefaultMutableTreeNode.java | Class | A DefaultMutableTreeNode is a general-purpose node in a tree data
structure. |
DefaultTreeCellEditor.java | Class | A TreeCellEditor . |
DefaultTreeCellRenderer.java | Class | Displays an entry in a tree.
DefaultTreeCellRenderer is not opaque and
unless you subclass paint you should not change this.
See How to Use Trees
in The Java Tutorial
for examples of customizing node display using this class.
The set of icons and colors used by
DefaultTreeCellRenderer can be configured using the various setter methods. |
DefaultTreeModel.java | Class | A simple tree data model that uses TreeNodes.
For further information and examples that use DefaultTreeModel,
see How to Use Trees
in The Java Tutorial.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
DefaultTreeSelectionModel.java | Class | Default implementation of TreeSelectionModel. |
ExpandVetoException.java | Class | Exception used to stop and expand/collapse from happening. |
FixedHeightLayoutCache.java | Class | NOTE: This will become more open in a future release.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
MutableTreeNode.java | Interface | 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.java | Interface | Defines the requirements for an object that translates paths in
the tree into display rows. |
TreeCellEditor.java | Interface | Adds to CellEditor the extensions necessary to configure an editor
in a tree. |
TreeCellRenderer.java | Interface | Defines the requirements for an object that displays a tree node. |
TreeModel.java | Interface | The model used by JTree .
JTree and its related classes make extensive use of
TreePath s for indentifying nodes in the TreeModel .
If a TreeModel returns the same object, as compared by
equals , at two different indices under the same parent
than the resulting TreePath objects will be considered equal
as well. |
TreeNode.java | Interface | Defines the requirements for an object that can be used as a
tree node in a JTree.
Implementations of TreeNode that override equals
will typically need to override hashCode as well. |
TreePath.java | Class | |
TreeSelectionModel.java | Interface | This interface represents the current state of the selection for
the tree component.
For information and examples of using tree selection models,
see How to Use Trees
in The Java Tutorial.
The state of the tree selection is characterized by
a set of TreePaths, and optionally a set of integers. |
VariableHeightLayoutCache.java | Class | NOTE: This will become more open in a future release.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |