Tuesday, August 28, 2001 05:52 AM
After adding a new node to the exising jtree, how do i update the jtree to show the now node immediately without doing any functionality.
Friday, March 8, 2002 02:09 AM
DefaultTreeModel treemodel=(DefaultTreeModel)tree.getModel();DefaultMutableNode newnode=new DefaultMutableNode("NodeText");treemodel.insertNodeInto (newnode,parent,parent.getChildCount());//new node is the one you are goint to add to the tree//parent is the path where you want to add// childcount is the index
Tuesday, August 28, 2001 03:06 PM
Tuesday, August 28, 2001 01:17 PM