Article View: ibm.software.vajava.language
Article #30Re: JTable problem
From: Jean-Luc Lachance
Date: Fri, 26 Jan 2001 10:55
Date: Fri, 26 Jan 2001 10:55
79 lines
3996 bytes
3996 bytes
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:
<3A7157A7.154F7CE2@interlink.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.software.ibm.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 109b1c,626d6cd543049ae6 X-Google-Attributes: gid109b1c,public X-Google-Thread: 114aa0,652a1b8760b0e6c X-Google-Attributes: gid114aa0,public X-Google-Thread: fed75,626d6cd543049ae6 X-Google-Attributes: gidfed75,public X-Google-ArrivalTime: 2001-01-26 03:00:50 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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 05:55:35 -0500 Organization: Action Télématique Inc Lines: 79 Message-ID: <3A7157A7.154F7CE2@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> NNTP-Posting-Host: 207.253.49.57 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: news.software.ibm.com 980506041 15218 207.253.49.57 (26 Jan 2001 10:47:21 GMT) X-Complaints-To: usenet@news.software.ibm.com NNTP-Posting-Date: 26 Jan 2001 10:47:21 GMT To: Peter Walker <walkerp@us.ibm.com> X-Mailer: Mozilla 4.75 [en] (Win95; U) X-Accept-Language: en