🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Need help on disappearing Swing controls

#15890
From: Tad Frysinger
Date: Tue, 27 Apr 1999 00:00
14 lines
1136 bytes
In article <371E2BBD.8500DC44@valuestar.com>, bmuller@valuestar.com 
says...
> Well, there is no "repack" but the pack() method on the frame seems to work.
> I put a frame.pack() invocation after each setVisible, and everything
> behaves very nicely! Thanks.
>   --Bob Muller
> 
'pack' is used to size the frame to make sure it can fit to the preferred 
size of its subcomponents, and then it lays out the components.  You only 
need to do this once, unless you are changing the components in the 
frame.  Use invalidate()/validate() if you just want to lay out 
components.

Tad Frysinger (TeamB)
Technical Details
Message-ID: <MPG.118f900efe4e8ab59899ca@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371768EA.14972F1D@valuestar.com> <371A60C5.1F3E5F4E@cruzio.com> <371E2BBD.8500DC44@valuestar.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6c0a42b7722cc186
X-Google-Attributes: gidf74b3,public
From: tfrysinger@earthlink.net (Tad Frysinger)
Subject: Re: Need help on disappearing Swing controls
Date: 1999/04/27
Message-ID: <MPG.118f900efe4e8ab59899ca@forums.borland.com>
X-Deja-AN: 471512407
References: <371768EA.14972F1D@valuestar.com> <371A60C5.1F3E5F4E@cruzio.com> <371E2BBD.8500DC44@valuestar.com>
Organization: Freezone Enterprises
Newsgroups: borland.public.jbuilder.java.language