Ciao a tutti,
ho un problemone grosso....
come diavolo si fa?
DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
DefaultTreeModel treeModel = new DefaultTreeModel(root);
tree = new JTree(treeModel);
treeModel =(DefaultTreeModel)tree.getModel();
....
treeModel.insertNodeInto(new DefaultMutableTreeNode(rsQuery.getString(1)), root, root.getChildCount());
...
cosi facendo mi costruisco la prima ramificazione ma come faccio ad associare un altro DefaultMutableTreeNode
![]()