Article View: borland.public.jbuilder.java.swing
Article #7653Re: Force a re-rendering of a column's cells in a JTable?
From: John McGrath TeamB
Date: Wed, 20 Dec 2000 10:38
Date: Wed, 20 Dec 2000 10:38
26 lines
1564 bytes
1564 bytes
On Tue, 19 Dec 2000 10:37:34 -0500, Tom Denn wrote:
> But, how do I force the table to re-render so that the
> renderer will now be able to display the entire column
> in with the new units? Can I re-render just one column?
You need to fire a TableModelEvent:
TableModelEvent( TableModel source, int firstRow, int lastRow,
int column, int type )
This indicates that the cells from (firstRow, column) to (lastRow,
column) have been changed.
Even though the values in those columns has not really changed from
your point of view, they have changed as far as the JTable is
concerned.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.14aa5601928522d7989dde@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mailReferences:
<3a3f80ea_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,770da004a7891c59 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-20 02:40:23 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Force a re-rendering of a column's cells in a JTable? Date: Wed, 20 Dec 2000 05:38:54 -0500 Organization: Another Netscape Collabra Server User Lines: 26 Message-ID: <MPG.14aa5601928522d7989dde@forums.borland.com> References: <3a3f80ea_1@dnews> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30