# Uses of Package
javax.swing.tree

- Packages that use javax.swing.tree
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.swing.event | Provides for events fired by Swing components.
  javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.
  javax.swing.plaf.multi | Provides user interface objects that combine two or more look and feels.
  javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated.
  javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components.
  javax.swing.text.html | Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.
  javax.swing.tree | Provides classes and interfaces for dealing with `javax.swing.JTree`.

- Classes in javax.swing.tree used by javax.swing
  Class | Description
  --- | ---
  DefaultMutableTreeNode | A `DefaultMutableTreeNode` is a general-purpose node in a tree data structure.
  DefaultTreeSelectionModel | Default implementation of TreeSelectionModel.
  ExpandVetoException | Exception used to stop and expand/collapse from happening.
  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 `JTree`.
  TreeNode | Defines the requirements for an object that can be used as a tree node in a JTree.
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.
  TreeSelectionModel | This interface represents the current state of the selection for the tree component.

- Classes in javax.swing.tree used by javax.swing.event
  Class | Description
  --- | ---
  ExpandVetoException | Exception used to stop and expand/collapse from happening.
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.

- Classes in javax.swing.tree used by javax.swing.plaf
  Class | Description
  --- | ---
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.

- Classes in javax.swing.tree used by javax.swing.plaf.basic
  Class | Description
  --- | ---
  AbstractLayoutCache | Warning: Serialized objects of this class will not be compatible with future Swing releases.
  AbstractLayoutCache.NodeDimensions | Used by `AbstractLayoutCache` to determine the size and x origin of a particular node.
  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 `JTree`.
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.
  TreeSelectionModel | This interface represents the current state of the selection for the tree component.

- Classes in javax.swing.tree used by javax.swing.plaf.metal
  Class | Description
  --- | ---
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.

- Classes in javax.swing.tree used by javax.swing.plaf.multi
  Class | Description
  --- | ---
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.

- Classes in javax.swing.tree used by javax.swing.plaf.synth
  Class | Description
  --- | ---
  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.
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.

- Classes in javax.swing.tree used by javax.swing.text
  Class | Description
  --- | ---
  TreeNode | Defines the requirements for an object that can be used as a tree node in a JTree.

- Classes in javax.swing.tree used by javax.swing.text.html
  Class | Description
  --- | ---
  TreeNode | Defines the requirements for an object that can be used as a tree node in a JTree.

- Classes in javax.swing.tree used by javax.swing.tree
  Class | Description
  --- | ---
  AbstractLayoutCache | Warning: Serialized objects of this class will not be compatible with future Swing releases.
  AbstractLayoutCache.NodeDimensions | Used by `AbstractLayoutCache` to determine the size and x origin of a particular node.
  DefaultMutableTreeNode | A `DefaultMutableTreeNode` is a general-purpose node in a tree data structure.
  DefaultTreeCellRenderer | Displays an entry in a tree.
  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 `JTree`.
  TreeNode | Defines the requirements for an object that can be used as a tree node in a JTree.
  TreePath | `TreePath` represents an array of objects that uniquely identify the path to a node in a tree.
  TreeSelectionModel | This interface represents the current state of the selection for the tree component.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.