you need to define the height (and width) of your GUI relative.
That's done by using percent values or - if not available - by using calculations which do the trick for you:
{
...
setColumns(1000);
}
private void setColumns(final int tableWidth) {
oTableCol1.setWidth((int) (0.20 * tableWidth));
oTableCol2.setWidth((int) (0.11 * tableWidth));
oTableCol3.setWidth((int) (0.18 * tableWidth));
oTableCol4.setWidth((int) (0.10 * tableWidth));
oTableCol5.setWidth((int) (0.10 * tableWidth));
oTableCol6.setWidth((int) (0.10 * tableWidth));
oTableCol7.setWidth((int) (0.15 * tableWidth));
oTableCol8.setWidth((int) (0.05 * tableWidth));
}
That is one of my tables. It calculates according to the given value the width of the table columns. I give it a width of 1000 in this - which could also be read from the displayed resolution and be different on each system.
The number of entries in the table is
heightOfTable / heightOfOneEntry
whereas heightOfTable is defined by the display resolution....