Article View: borland.public.jbuilder.java.swing
Article #9183Re: JPanel refresh problem
From: Greg Hamer
Date: Wed, 10 May 2000 00:00
Date: Wed, 10 May 2000 00:00
22 lines
1294 bytes
1294 bytes
Try calling validate on the parent of jPanel1.
Aurelien Broszniowski <aurelien@sensiva.com> wrote in message
news:3917D444.2B328C19@sensiva.com...
> Hi!
> I'm sorry but I don't understand, the validate( ) function works after the
> JPanel.add(...), but not after the JPanel.removeAll( );
> If I just do:
>
> JPanel jPanel1 = new JPanel( );
>
> jPanel1.add(new JLabel("Hello") );
>
>
> and then later when I do:
>
> jPanel1.removeAll( );
> jPanel1.validate( );
>
> I still need to resize the Frame to make the changes appear!
>
>
Technical Details
Message-ID:
<8fc3o9$28p6@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3916C2E3.4C184D1B@sensiva.com> <391738B5.5EBFDB4D@bilbo.bio.purdue.edu> <3916CC3E.5B66D947@sensiva.com> <39174465.3B555951@inprise.com> <3916DC83.FA96BF5@sensiva.com> <39183103.81692AC3@inprise.com> <3917D444.2B328C19@sensiva.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f01bc2622e0cd022 X-Google-Attributes: gid111d45,public From: "Greg Hamer" <ghamer@corp.netzero.net> Subject: Re: JPanel refresh problem Date: 2000/05/10 Message-ID: <8fc3o9$28p6@bornews.borland.com> X-Deja-AN: 621641074 References: <3916C2E3.4C184D1B@sensiva.com> <391738B5.5EBFDB4D@bilbo.bio.purdue.edu> <3916CC3E.5B66D947@sensiva.com> <39174465.3B555951@inprise.com> <3916DC83.FA96BF5@sensiva.com> <39183103.81692AC3@inprise.com> <3917D444.2B328C19@sensiva.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing