public void insertNodeInto(MutableTreeNode newChild,MutableTreeNode parent,int index){
  parent.insert(newChild,index);
  int[] newIndexs=new int[1];
  newIndexs[0]=index;
  nodesWereInserted(parent,newIndexs);
}

public void insertNodeInto ( MutableTreeNode newChild , MutableTreeNode parent , int index ) { parent . insert ( newChild , index ) ; int [ ] newIndexs = new int [ 1 ] ; newIndexs [ 0 ] = index ; nodesWereInserted ( parent , newIndexs ) ; }
invoked this to insert newchild at location index in parents children . this will then message nodeswereinserted to create the appropriate event . this is the preferred way to add children as it will create the appropriate event .
