This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Queries about Multiple Tree Selections; maybe design issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Queries about Multiple Tree Selections; maybe design issue" Watch "Queries about Multiple Tree Selections; maybe design issue" New topic
Author

Queries about Multiple Tree Selections; maybe design issue

Ravi Sathish
Ranch Hand

Joined: Feb 26, 2002
Posts: 131
Hi Ranchers,

I have Tree with TreeModel which notfiy TreeModelListener which inturn notifies TreeSelectionListener with valueChanged() method handling what I need to do for a selection.

I have the following queries about Tree Multiple Selections:

1> Currently for multiple selections I take one node at a time and do my operations.... There's some mismatch; i need to do more reserach into my problems...

a) Whats the preferred practice for handling multiple selections?

b) Do you guys handle the selections one at a time..

c) Is there better practice ot handle multiple selections,...

d) Is there need for special precautions to avoid race conditions

2> Do you guys know of any particular sample code which deals with multiple tree selections?

Please advice,
Ravi
 
GeeCON Prague 2014
 
subject: Queries about Multiple Tree Selections; maybe design issue