This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree
 
Similar Threads
JTree
Highlight multiple nodes in jtree
Drag and Drop from JList to JTree
Getting the path of file selected in JTree item
Custom Multiple Selection for JTree