🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem to update JTable

#1022
From: KuoTsan
Date: Thu, 16 Sep 2004 21:07
16 lines
1548 bytes
Hi!  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.

     Can anyone help me out? Many thanks for you time!

 Kuotsan
Technical Details
Message-ID: <4149ffa1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!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-Thread: 111d45,440865a5dacd8b31,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "KuoTsan" <kuotsan66@yahoo.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Problem to update JTable
Date: Thu, 16 Sep 2004 14:07:05 -0700
Lines: 19
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: <4149ffa1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095368609 68.121.46.52 (16 Sep 2004 14:03:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail