allmer
asked on
JTree events not generated
Dear Experts,
I am using JTree to hold some selection possibilities.
I would like to respond to selections and perform some operations.
However, none of the event handlers are ever reached.
FocusGained, MouseReleased, ValueChanged, and KeyReleased
I am using Netbeans 6.5 with Java 1.6. or so
Any ideas how I can fix this problem?
I am using JTree to hold some selection possibilities.
I would like to respond to selections and perform some operations.
However, none of the event handlers are ever reached.
FocusGained, MouseReleased, ValueChanged, and KeyReleased
I am using Netbeans 6.5 with Java 1.6. or so
Any ideas how I can fix this problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Easy to miss such a problem .. thanks
:-)
ASKER
but it seems that Netbeans does add it:
jTree1.addTreeSelectionLis
public void valueChanged(javax.swing.e
jTree1ValueChanged(evt);
}
});
On second thought you are right.
I create a new tree and I did not add the listeners again.
Right on CEHJ!