javax.swing.event
Interface TreeSelectionListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
BasicTreeUI.TreeSelectionHandler sample code for javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler definition code for javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler , DefaultTreeCellEditor sample code for javax.swing.tree.DefaultTreeCellEditor definition code for javax.swing.tree.DefaultTreeCellEditor , JTree.AccessibleJTree sample code for javax.swing.JTree.AccessibleJTree definition code for javax.swing.JTree.AccessibleJTree , JTree.TreeSelectionRedirector sample code for javax.swing.JTree.TreeSelectionRedirector definition code for javax.swing.JTree.TreeSelectionRedirector

public interface TreeSelectionListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

The listener that's notified when the selection in a TreeSelectionModel changes. For more information and examples see How to Write a Tree Selection Listener, a section in The Java Tutorial.

See Also:
TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel , JTree sample code for javax.swing.JTree definition code for javax.swing.JTree

Method Summary
 void valueChanged sample code for javax.swing.event.TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent) definition code for javax.swing.event.TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent) (TreeSelectionEvent sample code for javax.swing.event.TreeSelectionEvent definition code for javax.swing.event.TreeSelectionEvent  e)
          Called whenever the value of the selection changes.
 

Method Detail

valueChanged sample code for javax.swing.event.TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent) definition code for javax.swing.event.TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)

void valueChanged(TreeSelectionEvent sample code for javax.swing.event.TreeSelectionEvent definition code for javax.swing.event.TreeSelectionEvent  e)
Called whenever the value of the selection changes.

Parameters:
e - the event that characterizes the change.