Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree-Multipleselection of childnodes  RSS feed

 
wip siva
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends ,
i would like to know wheather multipleselection is possible
in JTree.
i want to select a 2 or more childnodes or (leaf).i need to display the livedata on a jtable for each childnodes at a time.
plZ kindly help in this
thanx a lot in advance
bye
siva
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
wip siva
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi michael thanx.
have u developed any JTree and Jtable application.it is like dynamic updation of JTable .not from the database.from the flat files.plz if u have done it let me know.
bye
siva
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!