Article View: borland.public.jbuilder.java.swing
Article #9268Re: JPanel refresh problem
From: Aurelien Broszniowski
Date: Mon, 08 May 2000 00:00
Date: Mon, 08 May 2000 00:00
21 lines
1177 bytes
1177 bytes
Paul Furbacher wrote:
> Aurelien Broszniowski wrote:
>
> > I've got a problem with a JPanel, when I want to update the contents, I
> > do:
> >
> > jPanel1.removeAll();
> > jPanel1.add(new JLabel("Hello"));
> >
> > But I need to resize the Frame by hand with my mouse before the JPanel
> > shows the updates!
>
> Have you called "jPanel1.invalidate()"?
>
> Paul Furbacher (TeamB)
No, actually I really did a very simple application with a Frame into which
there's a JPanel where I want to add and remove components.
Technical Details
Message-ID:
<3916CC3E.5B66D947@sensiva.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3916C2E3.4C184D1B@sensiva.com> <391738B5.5EBFDB4D@bilbo.bio.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f01bc2622e0cd022 X-Google-Attributes: gid111d45,public From: Aurelien Broszniowski <aurelien@sensiva.com> Subject: Re: JPanel refresh problem Date: 2000/05/08 Message-ID: <3916CC3E.5B66D947@sensiva.com> X-Deja-AN: 620851997 Content-Transfer-Encoding: 7bit References: <3916C2E3.4C184D1B@sensiva.com> <391738B5.5EBFDB4D@bilbo.bio.purdue.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: aurelien@sensiva.com Newsgroups: borland.public.jbuilder.java.swing