The below is on the way to providing the results I am looking for, but unfortunately when this displays there is a large gap between tables on each page. It is so that I can
Absent a complete example, it's hard to be sure what you're seeing. Given that one should avoid setPreferredSize(), note that JTable
implements Scrollable
and can calculate it's own preferred size. Unfortunately, the arbitrary Dimension
calculated may be causing the problem. Overriding getPreferredScrollableViewportSize()
to return a multiple of getRowHeight()
, for example, may be a useful alternative.