Article View: borland.public.jbuilder.java.swing
Article #7793Force a re-rendering of a column's cells in a JTable?
From: Tom Denn
Date: Tue, 19 Dec 2000 15:37
Date: Tue, 19 Dec 2000 15:37
16 lines
1708 bytes
1708 bytes
I have a TableCellRenderer and TableCellEditor that each has a JtextField and a button. Think of this control as a value and the units displayed as the button's text representing the Length of something. With the editor control, you can click the button and cycle through the units (1 Meter or 100 cm or 1000 mm). What I want to happen is when I chance the units setting in any row, that units should now be the units for all rows of just this column (and values will change accordingly). ( I realize I'll have to synchronize the units chosen in the editor object with the units in the renderer for that column after a change in units) 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? Thanks
Technical Details
Message-ID:
<3a3f80ea_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!204.127.161.2.MISMATCH!wn2feed!wn1feed!worldnet.att.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!137.225.250.2Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,770da004a7891c59,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-19 07:40:13 PST From: "Tom Denn" <dennt@jsc.mil> Newsgroups: borland.public.jbuilder.java.swing Subject: Force a re-rendering of a column's cells in a JTable? Date: Tue, 19 Dec 2000 10:37:34 -0500 Lines: 21 X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 NNTP-Posting-Host: 137.225.250.2 Message-ID: <3a3f80ea_1@dnews> X-Trace: 19 Dec 2000 07:38:18 -0800, 137.225.250.2 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!204.127.161.2.MISMATCH!wn2feed!wn1feed!worldnet.att.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!137.225.250.2