🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Borderlayout question

#18223
From: Richard Wilkman
Date: Thu, 30 Jul 1998 00:00
37 lines
1750 bytes
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.

You can do this with XYLayout and GridBagLayout.

-Rich

Simon Andersson wrote:
> 
> Hi.
> 
> Shouldn't I be able to set the width in the control in the WEST part of my
> BorderLayout? I've tried run-time (since a width property is not available
> design-time) to set the width but nothing happens.
> 
> TIA / Simon

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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: <35C08EDF.CFC9BA42@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6pp9m5$jhk9@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/30
Message-ID: <35C08EDF.CFC9BA42@inprise.com>
X-Deja-AN: 376359553
Content-Transfer-Encoding: 7bit
References: <6pp9m5$jhk9@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