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?
Who is Participating?
CEHJConnect With a Mentor Commented:
Did you add the handlers to the object(s)?
allmerAuthor Commented:
I merely used the Netbeans facility to add the handlers.
but it seems that Netbeans does add it:

        jTree1.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
            public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {

On second thought you are right.
I create a new tree and I did not add the listeners again.

Right on CEHJ!
allmerAuthor Commented:
Easy to miss such a problem .. thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.