Article View: borland.public.jbuilder.java.swing
Article #11334Re: JTable setWidth method problem
From: Mark Kent
Date: Fri, 11 Jun 1999 00:00
Date: Fri, 11 Jun 1999 00:00
46 lines
1930 bytes
1930 bytes
This is a multi-part message in MIME format. --------------D1D0173287BB0AF5557CBAD3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Also, try using setPreferredWidth(). Richard Eber wrote: > Anyone else out there having problems with the setWidth method of a JTable > component? > > My columns are not resizing so I backed off and used the TableExample4.java > code I found in the Swing sample directories that came with JBuilder2 > Professional. In that source file there is a line: > > vegetarianColumn.setWidth(35); > > Changing 35 to other values does not vary the displayed column width either. > Any insight from anyone would be appreciated. > > Thanks in advance, > Rich Eber --------------D1D0173287BB0AF5557CBAD3 Content-Type: text/x-vcard; charset=us-ascii; name="markk.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mark Kent Content-Disposition: attachment; filename="markk.vcf" begin:vcard n:Kent;Mark tel;work:(401) 726-7937 x-mozilla-html:FALSE org:MHRI;Information Services adr:;;111 Brewster St.;Pawtucket;RI;02860;U.S.A. version:2.1 email;internet:markk@mhri.org note;quoted-printable:****************************=0D=0AHave a Disney Day=0D=0A**************************** x-mozilla-cpt:;31200 fn:Mark Kent end:vcard --------------D1D0173287BB0AF5557CBAD3--
Technical Details
Message-ID:
<37613806.A21CB6A3@mhri.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7jkbhs$4e915@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9480b7d52f4b8d54 X-Google-Attributes: gid111d45,public From: Mark Kent <markk@mhri.org> Subject: Re: JTable setWidth method problem Date: 1999/06/11 Message-ID: <37613806.A21CB6A3@mhri.org> X-Deja-AN: 488462360 References: <7jkbhs$4e915@forums.borland.com> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------D1D0173287BB0AF5557CBAD3" Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing