posted 23 years ago
Dear Siva,
You can use:
The TreeSelectionModel 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.
Check out the API for JTree and TreeSelectionModel.
Hope this helps.