Article View: borland.public.jbuilder.java.swing
Article #7638Resizing problems
From: Sam
Date: Wed, 10 Jan 2001 19:38
Date: Wed, 10 Jan 2001 19:38
21 lines
1701 bytes
1701 bytes
Hi all- I'm trying to allow a user to resize a GUI. I'm trying to get it working on a test application first, which has a table within a scroll pane, on a panel in a frame. When the frame is resized, I'd like the scroll pane to adjust its size based on a percentage of the size of the frame. I'm trying to use the XYLayout, but it seems that no matter what I do (e.g. set bounds, delete and re-add the component, set preferred sizes, etc) the sizes of the components always go back to their initial size. Sometimes you can see the scroll pane flash to the correct size for a moment, but then it resizes to the original XYConstraints. I was hoping not to use a different layout manager, if possible. Can anyone tell me what I'm doing wrong? Thanks Sam BTW, I'm using JBuilder3.
Technical Details
Message-ID:
<3A5CBA35.FBDC69B0@home.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!newscore.univie.ac.at!130.227.3.83.MISMATCH!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!24.113.3.107Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ecab773c49c5caa6,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-10 11:48:19 PST Message-ID: <3A5CBA35.FBDC69B0@home.com> Date: Wed, 10 Jan 2001 11:38:29 -0800 From: Sam <ssac@home.com> Organization: @Home Network X-Mailer: Mozilla 4.61 [en]C-AtHome0407 (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Resizing problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.113.3.107 X-Trace: 10 Jan 2001 11:38:20 -0800, 24.113.3.107 Lines: 21 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.cs.utwente.nl!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!newscore.univie.ac.at!130.227.3.83.MISMATCH!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!24.113.3.107