Received: from ns1.via.at (ns1.via.at [194.41.60.10]) by hub.org (8.8.8/8.7.5) with ESMTP id GAA12976 for ; Sun, 5 Jul 1998 06:27:38 -0400 (EDT) Received: (from root@localhost) by ns1.via.at (8.7.5/8.7.3) id MAA09138; Sun, 5 Jul 1998 12:27:36 +0200 (MET DST) Received: from unknown(194.96.66.6) by ns1.via.at via smap (V2.0) id xma009100; Sun, 5 Jul 98 12:27:12 +0200 Sender: kurt@via.at Message-ID: <359F54C8.4044@via.at> Date: Sun, 05 Jul 1998 12:26:16 +0200 From: "Kurt J. Hoell" Organization: Mirage Image Processing Systems Ltd. X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: Ludovic Marcotte CC: pgsql-interfaces@postgreSQL.org Subject: Re: [SQL] select w/Swing's JTable widget References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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