Article View: borland.public.jbuilder.java.swing
Article #9571problems with JTable sizes
From: Stanimir Atanassov
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
16 lines
1179 bytes
1179 bytes
Hi all I have some problems with JTable preferred size. If I set it to constant value the table doesn't grow above it even though its maximum size allows it. So the table is limited to its preferred size. If I don't set a preferred size I have no such problems but then the table, when empty, shows only column headers and does not paint the rest in the default window color (white) and it stays in default button color (lightgray). Setting minimal size doesn't solve the problem I can handle it by putting the table in a panel and setting its background to default window color (white) but I think there should be a better way without additional containers. Stan
Technical Details
Message-ID:
<89gkh4$jha2@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8f6d56f4d4a603d1,start X-Google-Attributes: gid111d45,public From: "Stanimir Atanassov" <stan@bse.bg> Subject: problems with JTable sizes Date: 2000/02/29 Message-ID: <89gkh4$jha2@bornews.borland.com> X-Deja-AN: 591317676 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing