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


Groups > comp.lang.java.programmer > #36660

Re: how to update JTable display

Newsgroups comp.lang.java.programmer
Date 2017-05-26 12:31 -0700
References <bbd6d1cf-5712-4156-8093-ddd41fe9cbfb@googlegroups.com> <1lqv55iupd8e9.y7o8k9n1nhkp$.dlg@40tude.net>
Message-ID <0bacbc2b-4565-43f7-bd7b-78086361b15e@googlegroups.com> (permalink)
Subject Re: how to update JTable display
From Eric Douglas <e.d.programmer@gmail.com>

Show all headers | View raw


On Friday, May 26, 2017 at 3:17:27 PM UTC-4, Joerg Meier wrote:
> On Fri, 26 May 2017 11:32:28 -0700 (PDT), Eric Douglas wrote:
> 
> > Now I must be missing something stupid.  I make some changes to
> > my table model, then I update the index array for my RowFilter from
> > the TableModelListener, then I tell the table to repaint and the
> > scrollpane to repaint and it's showing all wrong rows, but if I
> > scroll it up and back it shows correctly.
> 
> Did you remember to call
> 
> <http://docs.oracle.com/javase/8/docs/api/javax/swing/table/AbstractTableModel.html#fireTableDataChanged()>
> 
> ?
> 
> Liebe Gruesse,
> 		Joerg
> 
> -- 
> "Immer wieder erstaunlich, wie lächerlich man sich doch machen kann und
> sich dabei noch toll finden." 
>                         - Hartmut Kraus, 19.3.2017 in de.soc.recht.misc
> 
> Ich lese meine Emails nicht, replies to Email bleiben also leider
> ungelesen.

I did, but I just tested firing it a second time... I think this might be working.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

how to update JTable display Eric Douglas <e.d.programmer@gmail.com> - 2017-05-26 11:32 -0700
  Re: how to update JTable display Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-05-26 14:37 -0400
    Re: how to update JTable display Eric Douglas <e.d.programmer@gmail.com> - 2017-05-26 12:04 -0700
  Re: how to update JTable display Joerg Meier <joergmmeier@arcor.de> - 2017-05-26 21:17 +0200
    Re: how to update JTable display Eric Douglas <e.d.programmer@gmail.com> - 2017-05-26 12:31 -0700

csiph-web