public void nodesWereInserted(TreeNode node,int[] childIndices){
  if (listenerList != null && node != null && childIndices != null && childIndices.length > 0) {
    int cCount=childIndices.length;
    Object[] newChildren=new Object[cCount];
    for (int counter=0; counter < cCount; counter++)     newChildren[counter]=node.getChildAt(childIndices[counter]);
    fireTreeNodesInserted(this,getPathToRoot(node),childIndices,newChildren);
  }
}

public void nodesWereInserted ( TreeNode node , int [ ] childIndices ) { if ( listenerList != null && node != null && childIndices != null && childIndices . length > 0 ) { int cCount = childIndices . length ; Object [ ] newChildren = new Object [ cCount ] ; for ( int counter = 0 ; counter < cCount ; counter ++ ) newChildren [ counter ] = node . getChildAt ( childIndices [ counter ] ) ; fireTreeNodesInserted ( this , getPathToRoot ( node ) , childIndices , newChildren ) ; } }
invoke this method after you ' ve inserted some treenodes into node . childindices should be the index of the new elements and must be sorted in ascending order .
