🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CardLayout

#16688
From: Paul Furbacher
Date: Thu, 21 Jan 1999 00:00
21 lines
1661 bytes
Rob Clawson wrote:

> I have just started using JBuilder 2.0, and have written a little
> Wizard-like app using a CardLayout on a panel.  I have a number of
> subpanels being managed by the CardLayout and on each subpanel, several
> components.  What I am seeing is that when I first start the
> application, ALL of the components from the subpanels are visible on the
> first panel.  As I cycle through the various panels (cards), the
> components on each panel are hidden properly until, when I get to the
> last panel, everything works as expected, I only see the components on
> the current panel.  I tried calling invalidate() and validate() on the
> frame as well as several of the panels, but nothing seems to help.

I believe you are confronting the "lightweigth vs. heavyweight" 
problem.  Those controls which show through are heavy.  Read
all about this issue in the "HintsAndTips.txt" file in the
JBuilder folder.  One approach might be to place those heavyweight
controls on an AWT Panel instead of a JPanel, or aBevelPanel. 


Paul Furbacher
Technical Details
Message-ID: <36A7B240.CDC69C05@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36A7635F.ED4743D9@microware.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f289bebecec3db7f
X-Google-Attributes: gidf74b3,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: CardLayout
Date: 1999/01/21
Message-ID: <36A7B240.CDC69C05@bilbo.bio.purdue.edu>
X-Deja-AN: 435404922
Content-Transfer-Encoding: 7bit
References: <36A7635F.ED4743D9@microware.com>
To: Rob Clawson <robc@microware.com>
Content-Type: text/plain; charset=us-ascii
Organization: @Home Network
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.language