Hello everyone
Here is my problem: I currently have a JTable containing anywhere from
5,000 to well over 200,000 rows. You see where I'm going with this.
The data is already loaded into memory, which isn't a problem, but how
can I create an efficient JTable so that it only loads the rows that
are visible and that any events only act on those rows that are
visible in the viewport? Obviously scrolling is nearly impossible with
this much data, as it takes forever for the system to repaint and fire
events.
Basically I think one solution would be to determine which rows are in
the viewport, then create a new model containing those rows perhaps?
Chris
ak - 12 Jan 2004 16:31 GMT
> Here is my problem: I currently have a JTable containing anywhere from
> 5,000 to well over 200,000 rows. You see where I'm going with this.
[quoted text clipped - 4 lines]
> this much data, as it takes forever for the system to repaint and fire
> events.
exactly what you want I found in book Java Swing (pp. 543-546) by Robert
Eckstein, Mark Loy & Dave Wood ISBN 1-56592-455-x
sorry but it is too long to typewrite it here.
--
____________
http://reader.imagero.com the best java image reader.