🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

CardLayout

#16677
From: Rob Clawson
Date: Thu, 21 Jan 1999 00:00
24 lines
1857 bytes
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.

The layout that I initially had set on the subpanels was, of course,
XYLayout.  I changed this to several others, experimenting.  I found
that if I used a GridLayout or PanelLayout, everything would work great,
I only saw the components on the current panel (but I really didn't get
the exact look I wanted with these).  But using other layouts, like
XYLayout, FlowLayout, BorderLayout, or null, I had the same behavior
where all components on all panels were visible.

Any ideas as to what might cause this or what I can do to get this to
display properly as soon as the app starts up?  Any help would be
appreciated.

Rob Clawson
Technical Details
Message-ID: <36A7635F.ED4743D9@microware.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f289bebecec3db7f,start
X-Google-Attributes: gidf74b3,public
From: Rob Clawson <robc@microware.com>
Subject: CardLayout
Date: 1999/01/21
Message-ID: <36A7635F.ED4743D9@microware.com>
X-Deja-AN: 435287624
Content-Transfer-Encoding: 7bit
X-Accept-Language: en,fr-BE,fr-FR,fr-CH,fr-CA,fr
Content-Type: text/plain; charset=us-ascii
Organization: Microware Systems Corporation
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language