Re: Count how many visible rows can be fetched into a JFrame from JTable



Royan wrote:
On 20 апр, 05:17, "David A. Re***" <tinyweldingto...@xxxxxxxxx>
wrote:
As a matter of personal curiosity, why aren't you using the scroll
pane?

All, thanks a lot for the answers!

Actually I intend to implement the similar functionality as you might
have seen in PL/SQL. I have a large set of remote data and I simply
want my default action to upload only the amount of data that fits
user screen. In case user wants to receive the rest of the data he
will initiate the corresponding action that would upload the rest of
the data from server.


I suspect that a good way to handle this is to use the usual JScrollPane to give the user a scrolling display, but extend AbstractTableModel to handle the retrieval of data from the database on an as-needed basis rather than all at once. You can still cache a subset of rows.

--
RGB
.