Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic JTree  RSS feed

 
vijay256
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to create Dynamic tree using swing. i finished 90% of work.
finally i need to add some parents(pls note) under a node which already parent.
how can i write code here only?.
pls note: i didn't use defaultmutabletreenode anywhere.i used only hashtable as key
and vector as strings because i knew the tree structure clear.
try to reslove my probs.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vijay256" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

You can't have a parent under a parent... the only way you can do this is by making another tree and putting them each in a container and then placing the containers vertically, or by making a parent above those nodes that are parents to them...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!