hi cs,
You can set your scrollableviewport size.
create the dimension accoding to number of the row and width of your table.
Dimension dim = new Dimension(row size, width)
table.setPreferredScrollableViewportSize(dim).
or
table.setPreferredScrollableViewportSize(table.getPreferredSize()).
or
Dimension size = table.getPreferredScrollableViewportSize();
table.setPreferredScrollableViewportSize (new Dimension(Math.min(getPreferredSize().width, size.width), size.height);
Hope this will meet your requirement.