🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1059

refreshing tabledata when scrollbars are moved corrupts the display

#1059
From: Zoran Pjevic
Date: Fri, 30 Apr 2004 15:18
28 lines
1782 bytes
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
Technical Details
Message-ID: <lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,335e136567c4fb6f,start
X-Google-Attributes: gid111d45,public
From: Zoran Pjevic <zpjevic@anitesystems.de>
Newsgroups: borland.public.jbuilder.java.swing
Subject: refreshing tabledata when scrollbars are moved corrupts the display
Date: Fri, 30 Apr 2004 17:18:31 +0200
Message-ID: <lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com>
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.157.29.250
X-Trace: newsgroups.borland.com 1083338237 213.157.29.250 (30 Apr 2004 08:17:17 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail