If you open PKLite then do a query to populate the
results table. Then maximize the WindowFrame then
maximize the JInternalFrame. When you scroll in the
results table you only get 100 results returned. The
difference in the max value of the scoll bar minus the
300 buffer is always greater than the current value of
the the scroll bar.
This has to do with the way the scrollbars are
initialized on JScrollPanes. They are drawn in ratio
to the data it has to scroll. In this case it is 100
records. If you maximize the frame then the scroll bar
knob grows proportiantly, preventing the the retreival
of the next 100 results.
The fix is to include the size of the knob in the
calculation for loading the next page of the result set.
if ((jsb.getMaximum() - 300) <= (e.getValue() -