🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ibm.software.vajava.language
Article #32

Re: JTable problem

#32
From: Jean-Luc Lachance
Date: Fri, 26 Jan 2001 17:05
107 lines
4741 bytes
Yes you are perfectly right.  I have spent the whole night on this problem...

Peter Walker wrote:
> 
> I think you mean sizeColumnsToFit(0).
> Thanks for finding this....
> 
> Peter Walker
> 
> "Jean-Luc Lachance" <jllachan@interlink.net> wrote in message
> news:3A7157A7.154F7CE2@interlink.net...
> Well, I finally found a solution.
> 
> In getScrollPaneTable() I added .setColumnSizeToFit(0) in the first user
> code
> block. This re-adjust all the columns.
> 
> Hope this will help others with a similar problem.
> 
> Jean-Luc
> 
> Peter Walker wrote:
> >
> > VAJ 3.02 EA uses Java2 (JDK 1.2) in which JTable (and other Swing
> > components) have changed relative to size. Consequently JTable doesn't
> show
> > up well in the VCE (Visual Composition Editor), if your are using it.
> >
> > If you are using the VCE, much of your work has to be done in the Beans
> List
> > if you dropped the JTable (and underlying JScrollPane) on a container that
> > is set with BorderLayout as it's layout manager. From the Beans list,
> select
> > the JTable component and bring up the property sheet. Select the Reset
> > button, and from the dialog select the properties 'preferredSize' and
> > 'autoResizeMode', and select Okay to close the dialog and reset these
> > properties to the default settings. This will allow the JTable to be
> resized
> > to the JScollPane and hopefully allow the TableColumns to float in the
> > JTable to their preferred size as well. Hit the Run button to save, gen,
> and
> > test your class.
> >
> > Hope this helps.....
> > Peter Walker
> >
> > "Jean-Luc Lachance" <jllachan@interlink.net> wrote in message
> > news:3A6F5698.DDBEE9D0@interlink.net...
> > Enough pulling my hair!!!
> >
> > I recently moved from VAJ 3.0 to VAJ 3.02 EA and all my JTables are messed
> > up.
> > Columns seem to have a mind of there own when it comes to layout.
> Scrolling
> > horizontal AND vertical is broken.
> >
> > Please do not tell me about the AUTO_RESIZE_OFF, I already wasted enough
> > time
> > with that one.
> >
> > Is there a comprehensive list of bug fixes, improvements, feature changes,
> > etc.
> > for the swing package.
> >
> > --
> > Jean-Luc Lachance                   |mailto:jllachan@interlink.net
> > Action Telematique Inc              |   tel:(450)375-9782
> > 121, montée Krieghoff               |   fax:(450)375-7725
> > Canton de Shefford, QC, CANADA      |   cel:(514)992-4229
> > J2G 9J6                             |  home:(450)375-2936
> 
> --
> Jean-Luc Lachance                   |mailto:jllachan@interlink.net
> Action Telematique Inc              |   tel:(450)375-9782
> 121, montée Krieghoff               |   fax:(450)375-7725
> Canton de Shefford, QC, CANADA      |   cel:(514)992-4229
> J2G 9J6                             |  home:(450)375-2936

--
Jean-Luc Lachance                   |mailto:jllachan@interlink.net
Action Telematique Inc              |   tel:(450)375-9782
121, montée Krieghoff               |   fax:(450)375-7725
Canton de Shefford, QC, CANADA      |   cel:(514)992-4229
J2G 9J6                             |  home:(450)375-2936
Technical Details
Message-ID: <3A71AE4D.4DBBFB93@interlink.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!news.software.ibm.com!not-for-mail
References: <94mdgv$dea$1@news.software.ibm.com> <3A6ED738.FBB6FF68@ca.ibm.com> <94naas$rvq$1@news.software.ibm.com> <94nisl$12oq$1@news.software.ibm.com> <3A6F5698.DDBEE9D0@interlink.net> <94q6gv$caa$1@news.software.ibm.com> <3A7157A7.154F7CE2@interlink.net> <94s5ud$rjc$1@news.software.ibm.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 114aa0,652a1b8760b0e6c
X-Google-Attributes: gid114aa0,public
X-Google-Thread: fed75,626d6cd543049ae6
X-Google-Attributes: gidfed75,public
X-Google-Thread: 109b1c,626d6cd543049ae6
X-Google-Attributes: gid109b1c,public
X-Google-ArrivalTime: 2001-01-26 09:08:50 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!news.software.ibm.com!not-for-mail
From: Jean-Luc Lachance <jllachan@interlink.net>
Newsgroups: ibm.software.vajava.language,ibm.software.vajava.ide,ibm.software.vajava.beans
Subject: Re: JTable problem
Date: Fri, 26 Jan 2001 12:05:17 -0500
Organization: Action Télématique Inc
Lines: 107
Message-ID: <3A71AE4D.4DBBFB93@interlink.net>
References: <94mdgv$dea$1@news.software.ibm.com> <3A6ED738.FBB6FF68@ca.ibm.com> <94naas$rvq$1@news.software.ibm.com> <94nisl$12oq$1@news.software.ibm.com> <3A6F5698.DDBEE9D0@interlink.net> <94q6gv$caa$1@news.software.ibm.com> <3A7157A7.154F7CE2@interlink.net> <94s5ud$rjc$1@news.software.ibm.com>
NNTP-Posting-Host: 207.253.49.74
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: news.software.ibm.com 980528222 22484 207.253.49.74 (26 Jan 2001 16:57:02 GMT)
X-Complaints-To: usenet@news.software.ibm.com
NNTP-Posting-Date: 26 Jan 2001 16:57:02 GMT
X-Mailer: Mozilla 4.75 [en] (Win95; U)
X-Accept-Language: en