🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Need help on disappearing Swing controls

#15826
From: Robert J. Muller
Date: Wed, 21 Apr 1999 00:00
26 lines
1510 bytes
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

Andrew Bennett wrote:

> "Robert J. Muller" wrote:
>
> > My problem: the setVisible(true) doesn't make the control appear. If I
> > remove the initial setVisible(false), then the control appears
> > continuously and disappears after processing input (when I issue the
> > setVisible(false). Can anyone suggest why making the control invisible
> > in jbInit would make it impossible to show it later?
>
> Try a .repack() to let the layout manager know it's there.  I think that
> will do it.
> Put it after the .setVisible(true) call.
>
> Andrew
> --
>   Andrew Bennett
>   abennett@cruzio.com
>
> Note: I'm fairly busy in my personal life.  Private email to this
> message may go un-noticed.
Technical Details
Message-ID: <371E2BBD.8500DC44@valuestar.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371768EA.14972F1D@valuestar.com> <371A60C5.1F3E5F4E@cruzio.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: "Robert J. Muller" <bmuller@valuestar.com>
Subject: Re: Need help on disappearing Swing controls
Date: 1999/04/21
Message-ID: <371E2BBD.8500DC44@valuestar.com>
X-Deja-AN: 469248387
Content-Transfer-Encoding: 7bit
References: <371768EA.14972F1D@valuestar.com> <371A60C5.1F3E5F4E@cruzio.com>
Content-Type: text/plain; charset=us-ascii
Organization: ValueStar, Inc.
Mime-Version: 1.0
Reply-To: muller@computer.org
Newsgroups: borland.public.jbuilder.java.language