I want to check if a treenode is exists and if exists then add child to that existing TreeNode.
Suppose I have a TreeNode treeroot and a child treechild1. I have created treenode like this:
TreeNode[] tchild = new TreeNode[] {"childe1"};
TreeNode troot = new TreeNode("treeroot",tchild);
Now I want to check if the treeroot is created or not. If created then i want to add another child to that node which i get after checking. How can I do this?