🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18151

Re: Borderlayout question

#18151
From: Simon Andersson
Date: Fri, 31 Jul 1998 00:00
22 lines
1496 bytes
Hi Richard. Thanks for the response.

I understand that the purpose of Layout Managers is to help with automatic
sizing and placing of visual components. But in the BorderLayout case it
could as well be (should have been) possible to set the width of the WEST
and EAST components and the height of the NORTH and SOUTH components and the
CENTER should get the remaining space. Shouldn't that have been better?
Guess I have to write my own layout manager...

/ Simon


Richard Wilkman wrote in message <35C08EDF.CFC9BA42@inprise.com>...
>Simon:
>
>BorderLayout does not allow you to change the size of the components
>that are inside of it (nor does GridLayout, FlowLayout or
>CardLayout).  The whole purpose of layout managers is to allow the
>rules for the manager to determine sizing and placement of components
>within a container.  Some layout managers will look at preferred size
>and honor it if possible.  Border is not one of those, however.
>
Technical Details
Message-ID: <6pro6f$mld5@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6pp9m5$jhk9@forums.borland.com> <35C08EDF.CFC9BA42@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c6cbd786c2d191b4
X-Google-Attributes: gidf74b3,public
From: "Simon Andersson" <simon@acacia.se>
Subject: Re: Borderlayout question
Date: 1998/07/31
Message-ID: <6pro6f$mld5@forums.borland.com>
X-Deja-AN: 376593086
References: <6pp9m5$jhk9@forums.borland.com> <35C08EDF.CFC9BA42@inprise.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language