🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: setVisible only works if set to true on jbinit??!!?

#18662
From: Alex Humphreys
Date: Thu, 14 May 1998 00:00
44 lines
1786 bytes
Thanks for your help.  Repaint() didn't seem to work but doLayout() did.

Rich Wilkman wrote:

> Alex:
>
> Try a component.repaint() after the property set (or a doLayout() on
> the container).
>
> Nothing to do with jbInit().
>
> repaint() on property set is a good habit to get into -- esp. if you
> are going to move on to Swing.
>
> -Rich
>
> Alex Humphreys wrote:
> >
> > I'm trying to make a button appear on a user-defined event, but for some
> > reason I can't toggle the visible property of any object UNLESS the
> > object is set to visible=true upon initialization.  This doesn't make
> > sense.
> >
> > What am I missing?
> >
> > Thanks.
> >
> > --alex
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 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: <355AF1BD.FAA7272C@sema4.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3559C557.D397B203@sema4.com> <355A047F.A57CAF5D@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ca3877f561ab7de6
X-Google-Attributes: gidf74b3,public
From: Alex Humphreys <ahumphreys@sema4.com>
Subject: Re: setVisible only works if set to true on jbinit??!!?
Date: 1998/05/14
Message-ID: <355AF1BD.FAA7272C@sema4.com>
X-Deja-AN: 353191680
Content-Transfer-Encoding: 7bit
References: <3559C557.D397B203@sema4.com> <355A047F.A57CAF5D@corp.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language