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
Post a Comment