aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
 
wood burning stoves
 
subject: JTree