• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTree-Multipleselection of childnodes

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic