File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Swing / AWT / SWT
TreeSelectionListener interface valueChanged()
Joined: Jan 16, 2006
Mar 02, 2006 15:47:00
I have created
and implemented TreeSelectionListener interface and hence
i public void valueChanged(
node = (
what is the purpose of valueChanged ?
I know we have to implement valuechanged whenever Tree selection event is generated to be notified , what needs to be done in valueChanged method.
I am getting error when I select leaf node as
in my code ?
Joined: Jan 20, 2006
Mar 03, 2006 01:49:00
purpose of valueChanged method is --
- if u want to know which node is selected
- if u want enable/disable other components depeding on node selection in tree
I have used selection listener in my application for above purpose ..
SCJP 1.5, SCWCD 1.5
It is sorta covered in the
JavaRanch Style Guide
subject: TreeSelectionListener interface valueChanged()
JtreeTable does not return complete selection path
Tree and drawing within the same panel
How do I know which object is selected?
Dynamic JTree Components
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015