Article View: borland.public.jbuilder.java.swing
Article #10852Re: JTable updating problems
From: G.Vishweshwar
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
27 lines
1559 bytes
1559 bytes
If u are using a TableModel then after changing the data a call to fireTableDataChanged()(in AbstractTableModel class) will refresh the data. vishu Samir <samir@codetech.com> wrote in message news:7omlqp$7hi4@forums.borland.com... > I have created an application that adds data from jTextFields into a jTable > when the save button is clicked. > It is linked to a database so that when a save button is clicked the > database is correctly updated, however the table does not refresh so as to > reflect the new changes. The table is in a tablescrollpane. Currently my > code is set so that in jbinit the table is built via a call to a method that > populates the table, then, whenever save is pressed I recall this method so > that it may update the table. I was not successful in my attempts. I hope > that someone can be of assistance. The changes are only reflected when the > application is rebuilt and run. > > Thanking you in advance. > > Samir > >
Technical Details
Message-ID:
<7on010$80p3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7omlqp$7hi4@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e22b31e02b49239e X-Google-Attributes: gid111d45,public From: "G.Vishweshwar" <gvishu@wilco-int.com> Subject: Re: JTable updating problems Date: 1999/08/09 Message-ID: <7on010$80p3@forums.borland.com> X-Deja-AN: 510650754 References: <7omlqp$7hi4@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: wilco intl systems X-MSMail-Priority: Normal Reply-To: "G.Vishweshwar" <gvishu@wilco-int.com> Newsgroups: borland.public.jbuilder.java.swing