Re: [INTERFACES] select w/Swing's JTable widget

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Ludovic Marcotte <ludovic(at)Sophos(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] select w/Swing's JTable widget
Date: 1998-07-05 10:13:50
Message-ID: Pine.LNX.3.96.980705111133.3600E-100000@maidast.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-sql

On Sat, 4 Jul 1998, Ludovic Marcotte wrote:

> Hi,
> I would first like to thank all developpers that are working on
> PostgreSQL. It's an awesome piece of software.
>
> Secondly, I've a simple question. I'm developping a small application in
> Java and I use the Swing (JFC) widgets set. I have to do a select on a
> table and put the result in a JTable object. My question is, how (in an
> efficient manner) should I construct my JTable object since I do not know
> in advance how many rows I'll have (available through my resultset).
> Playing with Vector objects is annoying and with Object[]{[]} .. it's
> pretty static :)

I once played with Swing some time ago, with little success (it brought
the machine down). That was some time ago, so I'll be looking at swing
again fairly soon.

There is no way of knowing how many rows are in a ResultSet, without
reading in the entire set.

Also, I thought JTable could handle ResultSet's?

--
Peter T Mount peter(at)retep(dot)org(dot)uk or petermount(at)earthling(dot)net
Main Homepage: http://www.retep.org.uk
************ Someday I may rebuild this signature completely ;-) ************
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter(at)maidstone(dot)gov(dot)uk

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Kurt J. Hoell 1998-07-05 10:26:16 Re: [SQL] select w/Swing's JTable widget
Previous Message Bruce Momjian 1998-07-05 00:05:25 Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes

Browse pgsql-sql by date

  From Date Subject
Next Message Kurt J. Hoell 1998-07-05 10:26:16 Re: [SQL] select w/Swing's JTable widget
Previous Message Richard Lynch 1998-07-05 04:21:23 A, An, and The, out of Alphabetical order