AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem filtering TreeSelectionListener events

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
William Z.
Guest





PostPosted: Wed May 02, 2007 11:10 pm    Post subject: problem filtering TreeSelectionListener events Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.