Article View: borland.public.jbuilder.java.swing
Article #1139JTable in a JScrollPane question
From: Sam Seaborn
Date: Tue, 16 Mar 2004 15:02
Date: Tue, 16 Mar 2004 15:02
14 lines
1370 bytes
1370 bytes
I have a JTable in a JScrollPane. The JTable may contain up to 100,000 items. When I grab the scroll cursor and move it down, the table model's getValueAt(rowIndex, columnIndex) method for every item in the entire range. What I want is to only refresh the contents of the JTable when the user has dropped the scroll cursor in it's new location, not during the entire drag range. Is there a simple way to tell JScrollPane to only refresh the view only after the drag of the cursor is done? Sam
Technical Details
Message-ID:
<405715b8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,fe8ff9ddf14eeeed,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-16 07:05:29 PST From: "Sam Seaborn" <sam@rightclick.ca> Newsgroups: borland.public.jbuilder.java.swing Subject: JTable in a JScrollPane question Date: Tue, 16 Mar 2004 10:02:49 -0500 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.35.237.35 Message-ID: <405715b8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079449016 207.35.237.35 (16 Mar 2004 06:56:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail