public void insertRow(int rowIndex,RowSpec rowSpec){
  if (rowIndex < 1 || rowIndex > getRowCount()) {
    throw new IndexOutOfBoundsException("The row index " + rowIndex + " must be in the range [1, "+ getRowCount()+ "].");
  }
  rowSpecs.add(rowIndex - 1,rowSpec);
  shiftComponentsVertically(rowIndex,false);
  adjustGroupIndices(rowGroupIndices,rowIndex,false);
}

public void insertRow ( int rowIndex , RowSpec rowSpec ) { if ( rowIndex < 1 || rowIndex > getRowCount ( ) ) { throw new IndexOutOfBoundsException ( "The row index " + rowIndex + " must be in the range [1, " + getRowCount ( ) + "]." ) ; } rowSpecs . add ( rowIndex - 1 , rowSpec ) ; shiftComponentsVertically ( rowIndex , false ) ; adjustGroupIndices ( rowGroupIndices , rowIndex , false ) ; }
inserts the specified column at the specified position . shifts components that intersect the new column to the right and readjusts column groups . < p > the component shift works as follows : components that were located on the right hand side of the inserted column are shifted one column to the right ; component column span is increased by one if it intersects the new column . < p > column group indices that are greater or equal than the given column index will be increased by one .
