Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

Dynamically loading large data in JTable

Thread view: 
Christopher Parent - 12 Jan 2004 15:19 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.