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


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

Re: One missing link in j

From "Eric Sosman" <eric.sosman@THRWHITE.remove-dii-this>
Subject Re: One missing link in j
Message-ID <14mdnXWFFuGIlhHbnZ2dnUVZ_jadnZ2d@comcast.com> (permalink)
Newsgroups comp.lang.java.gui
References <nvusl4-99v.ln1@zoogz.gregorie.org>
Date 2011-04-27 15:36 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui,comp.l
Martin Gregorie wrote:
> [...]
> On a related point, I'm quite prepared to believe that there is a 
> problem either in the design or documentation of JTable and TableModel. 
> 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.

     Extend AbstractTableModel, and call fireTableDataChanged,
fireTableRowsInserted, etc., methods.  These are convenience
methods that eventually call the tableChanged method of the
TableModelListener interface; the JTable listens to its model.

-- 
Eric Sosman
esosman@ieee-dot-org.invalid

---
 * 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