🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: setVisisble(true) without effect

#17930
From: Greg Hamer
Date: Wed, 23 Sep 1998 00:00
17 lines
1188 bytes
you need to call validate on the container that the component that just
got set visible lives in. Any adding/removing/
showing of components after they have been shown needs the validate call
get it to re-figure where everything goes, and paint them.

Ralf Hotze wrote:

> Hello,
>
> I'm quite new with JBuilder / Java and would appreciate help on this
> simple problem:
> When I hide a button on my panel with "setVisible(false)"  it works
> fine, but when I later want to show it again with setVisible(true) it
> doesn't. Do I have to repaint the panel again and how (it's an
> application, no applet).
> Thank you very much
> Ralf
Technical Details
Message-ID: <36095EC2.8E2B3884@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3606550E.F2DDE57B@t-online.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a1e10b9ed724415d
X-Google-Attributes: gidf74b3,public
From: Greg Hamer <ghamer@inprise.com>
Subject: Re: setVisisble(true) without effect
Date: 1998/09/23
Message-ID: <36095EC2.8E2B3884@inprise.com>
X-Deja-AN: 394121319
Content-Transfer-Encoding: 7bit
References: <3606550E.F2DDE57B@t-online.de>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language