JSR-209 (Final Release)

Package javax.swing.tree

Provides classes and interfaces for dealing with javax.swing.JTree.

See:
          Description

Interface Summary
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.
TreeCellRenderer Defines the requirements for an object that displays a tree node.
TreeModel The interface that defines a suitable data model for a JTree.
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 Summary
DefaultMutableTreeNode A DefaultMutableTreeNode is a general-purpose node in a tree data structure.
DefaultTreeModel A simple tree data model that uses TreeNodes.
DefaultTreeSelectionModel Default implementation of TreeSelectionModel.
TreePath Represents a path to a node.
 

Exception Summary
ExpandVetoException Exception used to stop and expand/collapse from happening.
 

Package javax.swing.tree Description

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

JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.