🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do you resize components after a container is removed?

#14543
From: Rich Wilkman
Date: Fri, 20 Aug 1999 00:00
37 lines
1807 bytes
Mica:

I'm pretty sure that only the Center of a BorderLayout gets any magic
done for it (the "take remaining space" rule in the layout manager). 
All the others are either there or not, which would probably cause your
Frame to change size on the invalidate() calls.

-Rich

Mica Cooper wrote:
> 
> Howdy,
> 
> Here is a puzzle, I have a frame with a master panel. The master panel
> contains a Borderlayout with two panels, west and center. Upon pressing a
> button, I want to make the west panel disappear, press again, and reappear,
> automatically resizing the center panel. I can get this to happen with the
> center panel but the components in the panel do not resize appropriately.
> What is the trick?
> 
> Thanks,
> Mica

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Quality Assurance Manager
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: <37BDDF3B.BC8A38C8@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7pk7dn$88v22@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d688ef059c838a11
X-Google-Attributes: gidf74b3,public
From: Rich Wilkman <rwilkman@inprise.com>
Subject: Re: How do you resize components after a container is removed?
Date: 1999/08/20
Message-ID: <37BDDF3B.BC8A38C8@inprise.com>
X-Deja-AN: 515300174
Content-Transfer-Encoding: 7bit
References: <7pk7dn$88v22@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language