Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-209 (Final Approval Ballot)

javax.swing.event
Interface TreeSelectionListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
JTree.TreeSelectionRedirector

public interface TreeSelectionListener
extends 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, JTree

Method Summary
 void valueChanged(TreeSelectionEvent e)
          Called whenever the value of the selection changes.
 

Method Detail

valueChanged

public void valueChanged(TreeSelectionEvent e)
Called whenever the value of the selection changes.

Parameters:
e - the event that characterizes the change.

JSR-209 (Final Approval Ballot)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 209 specification.