N
Narayanan Kaleeswaram
Hello,
What I will do for removing and loading another node in the same
row to the JTree.Adding node to tree is as follows(in ActivateEvent of
the InternalFrame).
-------------
dmtnFun=new DefaultMutableTreeNode(filename);//dmtnFun,
DefaultMutableTreeNode
//filename is String
funTree=new JTree(dmtnFun);//JTree object
panFun.add(funTree); panFun is a JLabel
for(int i=0;i<10;1++)
dmtnFun.add(new DefaultMutableTreeNode(fun)); //fun is a String
array
((DefaultTreeModel)funTree.getModel()).reload(dmtnFun);
would like to remove this perticlar node(dmtnFun) from the tree in
DeactivateEvent of the InternalFrame and add new node(dmtnFun) with
the above code.
What I will do for removing and loading another node in the same
row to the JTree.Adding node to tree is as follows(in ActivateEvent of
the InternalFrame).
-------------
dmtnFun=new DefaultMutableTreeNode(filename);//dmtnFun,
DefaultMutableTreeNode
//filename is String
funTree=new JTree(dmtnFun);//JTree object
panFun.add(funTree); panFun is a JLabel
for(int i=0;i<10;1++)
dmtnFun.add(new DefaultMutableTreeNode(fun)); //fun is a String
array
((DefaultTreeModel)funTree.getModel()).reload(dmtnFun);
would like to remove this perticlar node(dmtnFun) from the tree in
DeactivateEvent of the InternalFrame and add new node(dmtnFun) with
the above code.