int i = 0;
// Use a preferred layout unless otherwise stated
for ( ; i < numRows; i++ )
tableLayout.insertRow( i, TableLayout.PREFERRED );
for ( i = 0; i < numCols; i++ )
tableLayout.insertColumn( i, TableLayout.FILL );
comp.setLayout( tableLayout );
// Insets in = comp.getInsets();
// Now populate the table
int[] rowSpans = new int[ numCols ];