| 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.plaf.basic | 
 Provides user interface objects built according to the
Basic look and feel. 
 | 
| javax.swing.tree | 
 Provides classes and interfaces for dealing with
 
javax.swing.JTree. | 
| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
JTree.AccessibleJTree
This class implements accessibility support for the
  
JTree class. | 
protected class  | 
JTree.TreeModelHandler
Listens to the model and updates the  
expandedState
 accordingly when nodes are removed, or changed. | 
| Modifier and Type | Field and Description | 
|---|---|
protected TreeModelListener | 
JTree.treeModelListener
Updates the  
expandedState. | 
| Modifier and Type | Method and Description | 
|---|---|
protected TreeModelListener | 
JTree.createTreeModelListener()
Creates and returns an instance of  
TreeModelHandler. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
BasicTreeUI.TreeModelHandler
Forwards all TreeModel events to the TreeState. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected TreeModelListener | 
BasicTreeUI.createTreeModelListener()
Returns a listener that can update the tree when the model changes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
TreeModelListener[] | 
DefaultTreeModel.getTreeModelListeners()
Returns an array of all the tree model listeners
 registered on this model. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
TreeModel.addTreeModelListener(TreeModelListener l)
Adds a listener for the  
TreeModelEvent
 posted after the tree changes. | 
void | 
DefaultTreeModel.addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. 
 | 
void | 
TreeModel.removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with
  
addTreeModelListener. | 
void | 
DefaultTreeModel.removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). 
 | 
 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, 2014, Oracle and/or its affiliates.  All rights reserved.