• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Adding tree node to same root ..?

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Members,

Im having a JTree in left side and i have to make a dynamic tree on right side by adding it from the left tree.

For example:
When i add a child node from a root node it should be in the same structure for the right tree also.
Here the name of child node may be same for several root nodes, but it should check for its parent node key_id or anything else.....

Please help me in this..

If you are not clear with me Please let me know...

Regards,
Prabhu.
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds to me like you just need a listener added to the first tree. When a node is added, add a similar node to the second.

What am I missing here?
reply
    Bookmark Topic Watch Topic
  • New Topic