🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7649

Re: Resizing problems

#7649
From: Rich Wilkman
Date: Thu, 11 Jan 2001 18:26
35 lines
2177 bytes
Torsten:

XYLayout is "like" null layout but not the same.  With XY the component also
has a size constraint that goes with it.

I've not seen null layout proportionally scale components based on the
container size and a user defined value for the proportion (overriding the
preferredSize of the components to do so instead of leaving them alone when
they say they're already big enough).  How do you do that?

-Rich

Torsten Welches wrote:

> Rich,
>
> I don't get your point, sorry. I have never used XYLayout but
> as I understand it it is like a null layout.
> You *can* do what Sam wants with a null layout, but you have
> to position all your controls yourself whenever the container
> size changes. Sam wanted to do just that, no?
> Or what am I missing?
>
> Thanks,
> Torsten
>
> Rich Wilkman <richw@formlessvoid.com> wrote:
> >Sam:
> >
> >XYLayout will never get you there -- that's the problem with co-ordinate
> >based layouts.  Things go where you stick them at the size you stick them
> >there.  I haven't seen a PercentOfContainer layout so you'll probably have
> >to invent one (or use GridBagLayout which is very, very powerful).
> >
> >-Rich
Technical Details
Message-ID: <3A5DFAC1.240F0CD6@formlessvoid.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!209.144.169.10
References: <3A5CBA35.FBDC69B0@home.com> <3A5CCA16.7EC9FF9A@formlessvoid.com> <3a5db048$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ecab773c49c5caa6
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-11 10:34:47 PST
Message-ID: <3A5DFAC1.240F0CD6@formlessvoid.com>
Date: Thu, 11 Jan 2001 10:26:09 -0800
From: Rich Wilkman <richw@formlessvoid.com>
Reply-To: richw@formlessvoid.com
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en,ja
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Resizing problems
References: <3A5CBA35.FBDC69B0@home.com>  <3A5CCA16.7EC9FF9A@formlessvoid.com> <3a5db048$1_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.144.169.10
X-Trace: 11 Jan 2001 10:26:24 -0800, 209.144.169.10
Lines: 36
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!dnews!209.144.169.10