protected List<T> createNewRow(final T value,final int cols){
  ArrayList<T> row=new ArrayList<T>();
  for (int i=0; i < cols; i++) {
    row.add(value);
  }
  return row;
}

protected List < T > createNewRow ( final T value , final int cols ) { ArrayList < T > row = new ArrayList < T > ( ) ; for ( int i = 0 ; i < cols ; i ++ ) { row . add ( value ) ; } return row ; }
create a new row for the table , with a specified value .
