Article View: borland.public.jbuilder.java.api
Article #3063Re: Component doesn't show up with setVisible()!!!
From: Rich Wilkman
Date: Sat, 18 Apr 1998 00:00
Date: Sat, 18 Apr 1998 00:00
58 lines
2264 bytes
2264 bytes
Frank: In Java, when you change/muck about with components in the container you need to call validate() on the container (and sometimes doLayout() works better with Applets) after you make the change. Simply changing a property on a component in a container in code will not make that container "wake up" and revalidate itself. Just a "lousy" Java technique that we all learn to work with. -Rich Frank Reimering wrote: > > Hello, > > Can anyone help me out with this one. > > I got a frame with a bevelpanel in it. This bevelpanel acts like a > container and therefore I can drop for example a button in it. > > OK, nothing special yet. > > Using the button 's setVisible() method I can make it visible/invisible > at > run-time. But when I change the button's visible property to false in > the > JBuilder designshop and run my program/applet again. The component > doesn't > show up when the visible property is set true. > > Very strange. > > The component does show up when you resize your applet/program screen!!! > > What am I doing wrong??? Or is this some kind of lousy JBuilder bug? > > Best regards, > > Frank Reimering > The Netherlands -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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:
<3538C587.CFD55456@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35379095.1AC1@tref.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,d01014a63ba6a061 X-Google-Attributes: gid1089d0,public From: Rich Wilkman <rwilkman@corp.borland.com> Subject: Re: Component doesn't show up with setVisible()!!! Date: 1998/04/18 Message-ID: <3538C587.CFD55456@corp.borland.com> X-Deja-AN: 345382570 Content-Transfer-Encoding: 7bit References: <35379095.1AC1@tref.nl> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api