 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
William Z. Guest
|
Posted: Wed May 02, 2007 11:10 pm Post subject: problem filtering TreeSelectionListener events |
|
|
I have a class that implements the TreeSelectionListener interface.
I use this to listen for events for a JTree that displayes a hierarchy
of DefaultMutableTreeNode's. The problem is that some of the nodes are
editable where the user can enter a number in a leaf node. Then, if
the user presses any number on the keyboard, the highlighting goes
from the current node to the next node that has that very same number
in the text field, sorta like tabbing and the focus goes from one tree
node to another.
I'd like to turn this off so that only mousedown selections will
highlight a treenode and not tabbing or other keys.
Any ideas? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|