Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1956
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail |
|---|---|
| From | "Martin Gregorie" <martin.gregorie@THRWHITE.remove-dii-this> |
| Subject | Re: One missing link in j |
| Message-ID | <er2vl4-1h7.ln1@zoogz.gregorie.org> (permalink) |
| X-Comment-To | comp.lang.java.gui,comp.l |
| Newsgroups | comp.lang.java.gui |
| In-Reply-To | <J5Wii.3358$4A1.45@news-server.bigpond.net.au> |
| References | <J5Wii.3358$4A1.45@news-server.bigpond.net.au> |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] |
| Lines | 24 |
| Date | Wed, 27 Apr 2011 15:36:20 GMT |
| NNTP-Posting-Host | 96.60.20.240 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1303918580 96.60.20.240 (Wed, 27 Apr 2011 10:36:20 CDT) |
| NNTP-Posting-Date | Wed, 27 Apr 2011 10:36:20 CDT |
| Organization | TDS.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1956 |
Show key headers only | View raw
To: comp.lang.java.gui,comp.l Esmond Pitt wrote: > Martin Gregorie wrote: >> I haven't been able to discover how to update the display when the >> underlying data changes. JTable doesn't seem to respond to repaint() >> and I haven't spotted a way of causing a repaint after updating the >> user data structure that TableModel is mapped onto. > > (i) As Eric said, extend AbstractTableModel and call the appopriate > fireTableXXXChanged() method, or (ii) extend DefaultTableModel and it > happens automatically when you call setValueAt(). If you override that, > be sure to call super.setValueAt() so the firing still happens. > Thanks to you and Eric for that pointer. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
One missing link in javax "RC" <rc@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Eric Sosman" <eric.sosman@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Bjorn Abelli" <bjorn.abelli@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Martin Gregorie" <martin.gregorie@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Judy Szikora" <judy.szikora@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Eric Sosman" <eric.sosman@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Esmond Pitt" <esmond.pitt@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Martin Gregorie" <martin.gregorie@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Eric Sosman" <eric.sosman@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: One missing link in j "Bjorn Abelli" <bjorn.abelli@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
csiph-web