Article View: borland.public.jbuilder.java.swing
Article #1064Re: refreshing tabledata when scrollbars are moved corrupts the display
From: Lori M Olson (TeamB)
Date: Sun, 02 May 2004 15:47
Date: Sun, 02 May 2004 15:47
58 lines
3001 bytes
3001 bytes
Zoran Pjevic wrote:
> Hi to everybody
>
> I have following problem, and really no clue how to solve it:
>
> A jtable is refreshed by a dataproducer. I have created my own
> tablemodel for this. The table is used with a scrollpane and a
> viewport.
>
> The data is refreshed every 100 ms. The size of the table can vary
> between two refreshs, so I check first if only the data has changed,
> or also the number of rows has changed, or even the number of columns
> has changed to call either fireTableDataChanged, fireTableRowsUpdated
> or fireTableStructureChanged.
>
> The size of the tabel is usually around 50 rows x 1000 columns. This
> cannot fit on one screen, so the user can use the scrollbars to move
> around.
>
> But if he does so, the display is often flickering, and refreshing is
> not fine.
>
> Is there a way to mutullay exlude the refreshing of the data when the
> scrollbars are dragged?
>
> Any help is welcome.
>
> Have a nice weekend,
> Zoran
There are some issues with flickering and screen refreshes for some
specific video cards.
If you look in the <jbuilder>/bin/jdk.config file you will find 3
properties that can be used to minimize this problem. When people see
this problem in JBuilder, you just uncomment one or more of those lines
in jdk.config. For your own application, you will need to set one or
more of those values (-Dxxxx) from the "java.exe" command line.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<40951818$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,335e136567c4fb6f X-Google-Attributes: gid111d45,public Date: Sun, 02 May 2004 09:47:01 -0600 From: "Lori M Olson (TeamB)" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax; CDonDemand-Dom) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: refreshing tabledata when scrollbars are moved corrupts the display References: <lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com> In-Reply-To: <lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <40951818$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083512856 142.179.181.200 (2 May 2004 08:47:36 -0700) Lines: 59 Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail