public void deleteInstances(int[] rowIndices){
  int i;
  Arrays.sort(rowIndices);
  addUndoPoint();
  m_IgnoreChanges=true;
  for (i=rowIndices.length - 1; i >= 0; i--) {
    deleteInstanceAt(rowIndices[i],false);
  }
  m_IgnoreChanges=false;
  notifyListener(new TableModelEvent(this,rowIndices[0],rowIndices[rowIndices.length - 1],TableModelEvent.ALL_COLUMNS,TableModelEvent.DELETE));
}

public void deleteInstances ( int [ ] rowIndices ) { int i ; Arrays . sort ( rowIndices ) ; addUndoPoint ( ) ; m_IgnoreChanges = true ; for ( i = rowIndices . length - 1 ; i >= 0 ; i -- ) { deleteInstanceAt ( rowIndices [ i ] , false ) ; } m_IgnoreChanges = false ; notifyListener ( new TableModelEvent ( this , rowIndices [ 0 ] , rowIndices [ rowIndices . length - 1 ] , TableModelEvent . ALL_COLUMNS , TableModelEvent . DELETE ) ) ; }
deletes the instances at the given positions
