Article View: borland.public.jbuilder.java.language
Article #18157Re: Borderlayout question
From: Richard Wilkman
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
45 lines
2239 bytes
2239 bytes
Simon: Javasoft makes the rules for their layout managers and you can make the rules for yours. Give it a shot! -Rich Simon Andersson wrote: > > 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. > > -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<35C1F4FB.9B0B2BB@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6pp9m5$jhk9@forums.borland.com> <35C08EDF.CFC9BA42@inprise.com> <6pro6f$mld5@forums.borland.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: Richard Wilkman <rwilkman@inprise.com> Subject: Re: Borderlayout question Date: 1998/07/31 Message-ID: <35C1F4FB.9B0B2BB@inprise.com> X-Deja-AN: 376718294 Content-Transfer-Encoding: 7bit References: <6pp9m5$jhk9@forums.borland.com> <35C08EDF.CFC9BA42@inprise.com> <6pro6f$mld5@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language