Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1956

Re: One missing link in j

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)
Newsgroups comp.lang.java.gui
References <J5Wii.3358$4A1.45@news-server.bigpond.net.au>
Date 2011-04-27 15:36 +0000
Organization TDS.net

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar


Thread

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