🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem to update JTable

#840
From: KuoTsan
Date: Fri, 24 Sep 2004 05:27
37 lines
2242 bytes
Hi! John McGrath , I resolved this problem by using "extends Observable
class"
Many thanks for your response
KuoTsan

"John McGrath [TeamB]" <ng-b@JPMcGrath.net>
news:414f9590$1@newsgroups.borland.com ...
> 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: <4153b022@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.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
References: <4149ffa1$1@newsgroups.borland.com> <414f9590$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: "KuoTsan" <kuotsan66@yahoo.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <4149ffa1$1@newsgroups.borland.com> <414f9590$1@newsgroups.borland.com>
Subject: Re: Problem to update JTable
Date: Thu, 23 Sep 2004 22:27:31 -0700
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 68.121.46.52
Message-ID: <4153b022@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096003618 68.121.46.52 (23 Sep 2004 22:26:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.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