Article View: borland.public.jbuilder.java.language
Article #17185Switching between panels in frames
From: Jonathan
Date: Wed, 09 Dec 1998 00:00
Date: Wed, 09 Dec 1998 00:00
30 lines
1082 bytes
1082 bytes
I have a frame which uses to panels, at seperate times.
The only problem is theat when i switch between the panels the transition is
not good
i am using
SomeMethod() {
Panel1 Pan1 = new Panel1();
this.getContentPane().add(Pan1, BorderLayout.CENTER);
this.getContentPane().remove(Pan1);
Panel2 Pan2 = new Panel2();
this.getContentPane().add(Pan2, BorderLayout.CENTER);
this.getContentPane().remove(Pan2);
}
the result of this is pan2 (panel) displayed on top of pan1 (panel), only by
resizing using the mouse during execution does panel1 (panel)disappear.
What should i be doing to
Technical Details
Message-ID:
<74mbds$c9t6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,3ac95e130a8e99f,start X-Google-Attributes: gidf74b3,public From: "Jonathan" <plaskowj@logica.com> Subject: Switching between panels in frames Date: 1998/12/09 Message-ID: <74mbds$c9t6@forums.borland.com> X-Deja-AN: 420491020 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.language