Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2007

Tip: Looking for answers? Try searching our database.

keeping multiple highlighted tree nodes selected

Thread view: 
William Z. - 26 Sep 2007 20:04 GMT
DISCONTIGUOUS_TREE_SELECTION allows me to select and highlight
multiple JTree nodes. I then right click on the highlighted selections
to bring up a popup menu which will affect the configuration of those
nodes, but the problem is when I make that initial right click on the
highlighted nodes, all the selections go away and I'm left w/ a single
selected tree node.

Any ideas how to keep the selection count up when right clicking on
any one of the multiple highlighted nodes and not have them dissappear
except for the one I right click on?
GArlington - 27 Sep 2007 16:40 GMT
> DISCONTIGUOUS_TREE_SELECTION allows me to select and highlight
> multiple JTree nodes. I then right click on the highlighted selections
[quoted text clipped - 6 lines]
> any one of the multiple highlighted nodes and not have them dissappear
> except for the one I right click on?

Try to stop right-click event propagation, void stopPropagation()
Here I assume that you are overriding the listener already...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.