pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedselect w/Swing's JTable widget
3+ messages / 3 participants
[nested] [flat]
* select w/Swing's JTable widget
@ 1998-07-04 18:58 Ludovic Marcotte <ludovic@Sophos.ca>
0 siblings, 2 replies; 3+ messages in thread
From: Ludovic Marcotte @ 1998-07-04 18:58 UTC (permalink / raw)
To: pgsql-sql@postgreSQL.org; +Cc: pgsql-interfaces
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 :)
Thanks a lot,
Ludovic
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [INTERFACES] select w/Swing's JTable widget
@ 1998-07-05 10:13 Peter T Mount <peter@retep.org.uk>
parent: Ludovic Marcotte <ludovic@Sophos.ca>
1 sibling, 0 replies; 3+ messages in thread
From: Peter T Mount @ 1998-07-05 10:13 UTC (permalink / raw)
To: Ludovic Marcotte <ludovic@Sophos.ca>; +Cc: pgsql-sql@postgresql.org; pgsql-interfaces
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@retep.org.uk or petermount@earthling.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@maidstone.gov.uk
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] select w/Swing's JTable widget
@ 1998-07-05 10:26 Kurt J. Hoell <khoell@via.at>
parent: Ludovic Marcotte <ludovic@Sophos.ca>
1 sibling, 0 replies; 3+ messages in thread
From: Kurt J. Hoell @ 1998-07-05 10:26 UTC (permalink / raw)
To: Ludovic Marcotte <ludovic@Sophos.ca>; +Cc: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1998-07-05 10:26 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-07-04 18:58 select w/Swing's JTable widget Ludovic Marcotte <ludovic@Sophos.ca>
1998-07-05 10:13 ` Peter T Mount <peter@retep.org.uk>
1998-07-05 10:26 ` Kurt J. Hoell <khoell@via.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox