🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10423

Re: Refreshing jdbTable after table change.

#10423
From: Doug Thistlethwaite
Date: Sun, 26 Sep 1999 00:00
30 lines
1592 bytes
Thank you for the reply Shaomei,

This is what I tried, but it did not update the displayed table.  I will try
it again to make sure I didn't do anything stupid...  One thing to note is
the database is updated by another process so the QueryDataSet needs to
refetch the data from the database.

Doug

Shaomei Ruan wrote:

> If your jdbTable has a QueryDataSet connect to it, all you need to do is
> just to call myQueryDataSet.refresh(), the jdbTable will update its
> content.
>
> Shaomei
>
> Doug Thistlethwaite wrote:
> >
> > I am working on a JDK1.2 application using swing and the database
> > connectivity stuff.
> >
> > I have a frame with a jdbTable that displays a simple table.  How do I
> > tell this table to update itself after the database has been modified?
> > Currently, I have to exit the application and restart it to see the
> > modifications to the table.
> >
> > Thank you,
> >
> > Doug
Technical Details
Message-ID: <37EEE873.FD31B130@deltanet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37E91637.168414CB@dupreeinc.com> <37EBBCA1.71C4C81A@geocities.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bddb5ebc309814ea
X-Google-Attributes: gid111d45,public
From: Doug Thistlethwaite <doug.t@deltanet.com>
Subject: Re: Refreshing jdbTable after table change.
Date: 1999/09/26
Message-ID: <37EEE873.FD31B130@deltanet.com>
X-Deja-AN: 529737209
Content-Transfer-Encoding: 7bit
References: <37E91637.168414CB@dupreeinc.com> <37EBBCA1.71C4C81A@geocities.com>
To: Shaomei Ruan <sruan@geocities.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing