🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable problem

#31
From: Peter Walker
Date: Fri, 26 Jan 2001 15:52
74 lines
4086 bytes
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
Technical Details
Message-ID: <94s5ud$rjc$1@news.software.ibm.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!130.59.211.10.MISMATCH!merapi!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!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>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fed75,626d6cd543049ae6
X-Google-Attributes: gidfed75,public
X-Google-Thread: 114aa0,652a1b8760b0e6c
X-Google-Attributes: gid114aa0,public
X-Google-Thread: 109b1c,626d6cd543049ae6
X-Google-Attributes: gid109b1c,public
X-Google-ArrivalTime: 2001-01-26 08:02:38 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!130.59.211.10.MISMATCH!merapi!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!news.software.ibm.com!not-for-mail
From: "Peter Walker" <walkerp@us.ibm.com>
Newsgroups: ibm.software.vajava.language,ibm.software.vajava.ide,ibm.software.vajava.beans
Subject: Re: JTable problem
Date: Fri, 26 Jan 2001 10:52:00 -0500
Organization: IBM Software Group                 
Lines: 76
Message-ID: <94s5ud$rjc$1@news.software.ibm.com>
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>
NNTP-Posting-Host: ss03.nc.us.ibm.com
X-Trace: news.software.ibm.com 980523789 28268 32.97.136.233 (26 Jan 2001 15:43:09 GMT)
X-Complaints-To: usenet@news.software.ibm.com
NNTP-Posting-Date: 26 Jan 2001 15:43:09 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700