Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes addTreeSelectionListener not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "addTreeSelectionListener not working" Watch "addTreeSelectionListener not working" New topic

addTreeSelectionListener not working

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 327
In my code I have

The event is not being triggered. Is there anything I have to set on the tree?

Your help will be greatly appreciated,
Alejandro Barrero
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
works OK for me.

where do you call init(), so the listener is added?
I agree. Here's the link:
subject: addTreeSelectionListener not working
It's not a secret anymore!