Article View: borland.public.jbuilder.java.swing
Article #8636JTable resizing
From: Michael Hansen
Date: Fri, 04 Aug 2000 00:00
Date: Fri, 04 Aug 2000 00:00
13 lines
955 bytes
955 bytes
How does I get the JTable to fill all the area in a JScrollPane, instead of hanging in the one side, until the user resizes a row? My JTable gets its datamodel after it have been inserted into the JScrollPane. I have tried to use myJScollPane.getViewport().setPreferredSize(new Dimension(1600,800)); myJTable().setPreferredScrollableViewportSize(new Dimension(1600,800)); They works sometimes, but not allways. My program is an Applet with variable height and width. MH
Technical Details
Message-ID:
<398a6a25_2@dnews>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,2805815c15a9b277,start X-Google-Attributes: gid111d45,public From: "Michael Hansen" <mh@andrax.dk> Subject: JTable resizing Date: 2000/08/04 Message-ID: <398a6a25_2@dnews> X-Deja-AN: 654329925 X-Trace: 4 Aug 2000 00:00:53 -0800, 194.234.210.8 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400