Re: [SQL] select w/Swing's JTable widget - Mailing list pgsql-interfaces

From Kurt J. Hoell
Subject Re: [SQL] select w/Swing's JTable widget
Date
Msg-id 359F54C8.4044@via.at
Whole thread Raw
In response to select w/Swing's JTable widget  (Ludovic Marcotte <ludovic@Sophos.ca>)
List pgsql-interfaces
Ludovic Marcotte once wrote:
>
> Hi,
>         I would first like to thank all developpers that are working on
> PostgreSQL. It's an awesome piece of software.
>
I second that.

> 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).

The model side of it ? - then think again.
The component side of it ? - then the swing list is THE  place to look
for.

> Playing with Vector objects is annoying and with Object[]{[]} .. it's
> pretty static :)
>
What's wrong with Vectors (or Collections) ?

> Thanks a lot,
>                 Ludovic

pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Revised proposal for libpq and FE/BE protocol changes
Next
From: Herouth Maoz
Date:
Subject: Re: [INTERFACES] ODBC on unix?