🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem to update JTable

#1025
From: John McGrath [TeamB]
Date: Tue, 21 Sep 2004 02:44
29 lines
1974 bytes
On 9/16/2004 at 5:07:05 PM, KuoTsan wrote:

> I have problem to update JTable :
> I put JProgressBar in a cell of JTable to indicate current progress.
> So, I implemented TableModel and TableRenderer to update the
> JProgressBar.
> 
>    Whenever my data update, I invoked "fireTableRowsUpdated(..)" in
> TableModel,
> then it will call "getTableCellRendererComponent(...)" in TableRenderer.
> The problem is when last row stop updating, all preveious rows will stop
> too,
> unless I resize the windows or select that row.  Debug shows me that when
> last row stop updating,   "fireTableRowsUpdated(..)" won't invoke
>  "getTableCellRendererComponent(...)" anymore, so all previous won't
> update.

My guess is that there is a bug in the event notification code, but there
is no way to be sure without seeing the code.  If you can post a runnable
example of the problem, I will be glad to look at it.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <414f9590$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4149ffa1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,440865a5dacd8b31
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Problem to update JTable
Newsgroups: borland.public.jbuilder.java.swing
References: <4149ffa1$1@newsgroups.borland.com>
User-Agent: XanaNews/1.16.4.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.151.8.31
Message-ID: <414f9590$1@newsgroups.borland.com>
Date: 20 Sep 2004 19:44:32 -0700
X-Trace: newsgroups.borland.com 1095734672 141.151.8.31 (20 Sep 2004 19:44:32 -0700)
Lines: 29
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail