aspose file tools
The moose likes Swing / AWT / SWT and the fly likes JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTree " Watch "JTree " New topic
Author

JTree

wip siva
Ranch Hand

Joined: Nov 03, 2000
Posts: 36
hi
i want to do multiple selection in my JTree(multiple nodes)
can any one tell me about multiple selection in JTree.
plz
regards
siva
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
This was just a look through the API, but it looks like you can use:

The constants are:
CONTIGUOUS_TREE_SELECTION
Selection can only be contiguous.
DISCONTIGUOUS_TREE_SELECTION
Selection can contain any number of items that are not necessarily contiguous.
SINGLE_TREE_SELECTION
Selection can only contain one path at a time.
wip siva
Ranch Hand

Joined: Nov 03, 2000
Posts: 36
hi friend thanx for ur suggestion.i try out this.
bye
siva
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JTree
 
Similar Threads
Drag and Drop from JList to JTree
JTree
Highlight multiple nodes in jtree
Custom Multiple Selection for JTree
Getting the path of file selected in JTree item