| 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.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 | Method and Description | 
|---|---|
| protected void | JTree. fireValueChanged(TreeSelectionEvent e)Notifies all listeners that have registered interest for
 notification on this event type. | 
| void | JTree.TreeSelectionRedirector. valueChanged(TreeSelectionEvent e)Invoked by the  TreeSelectionModelwhen the
 selection changes. | 
| void | JTree.AccessibleJTree. valueChanged(TreeSelectionEvent e)Tree Selection Listener value change method. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TreeSelectionListener. valueChanged(TreeSelectionEvent e)Called whenever the value of the selection changes. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BasicTreeUI.TreeSelectionHandler. valueChanged(TreeSelectionEvent event)Messaged when the selection changes in the tree we're displaying
 for. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | DefaultTreeSelectionModel. fireValueChanged(TreeSelectionEvent e)Notifies all listeners that are registered for
 tree selection events on this object. | 
| void | DefaultTreeCellEditor. valueChanged(TreeSelectionEvent e)Resets  lastPath. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.