java - How to make a any node as parent node in JTree so that children can be added to it? -


how make current node in jtree parent node add children it. complete data fetched database.

somewhat below :

root-- parent1 - children     |- parent2 - children 

i need dynamically generate tree

thanks in advance :)

if nodes mutabletreenode e.g. defaultmutabletreenode use

public void insert(mutabletreenode newchild, int childindex)  

method add children current node


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -