DefaultMutableTreeNode insertNode(DefaultMutableTreeNode pChild,DefaultMutableTreeNode pParent){
  int index;
  index=getIndexOfChild(pParent,pChild);
  if (index >= 0) {
    return (DefaultMutableTreeNode)getChild(pParent,index);
  }
  index=pParent.getChildCount();
  insertNodeInto(pChild,pParent,index);
  return pChild;
}

DefaultMutableTreeNode insertNode ( DefaultMutableTreeNode pChild , DefaultMutableTreeNode pParent ) { int index ; index = getIndexOfChild ( pParent , pChild ) ; if ( index >= 0 ) { return ( DefaultMutableTreeNode ) getChild ( pParent , index ) ; } index = pParent . getChildCount ( ) ; insertNodeInto ( pChild , pParent , index ) ; return pChild ; }
add a node to the tree if it doesn ' t already exist
