Article View: borland.public.jbuilder.java.swing
Article #9126Re: JPanel refresh problem
From: Sven Goetgeluck
Date: Sat, 27 May 2000 00:00
Date: Sat, 27 May 2000 00:00
39 lines
1599 bytes
1599 bytes
Had the same problem , solved it with
SwingUtilities.updateComponentTreeUI(/*Panelname*/);
hope this helps
Sven
Greg Hamer <ghamer@corp.netzero.net> schreef in berichtnieuws
8fc3o9$28p6@bornews.borland.com...
> 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:
<392eb4bc@dnews>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> <8fc3o9$28p6@bornews.borland.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: "Sven Goetgeluck" <sven.goetgeluck@pandora.be> Subject: Re: JPanel refresh problem Date: 2000/05/27 Message-ID: <392eb4bc@dnews> X-Deja-AN: 627665458 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> <8fc3o9$28p6@bornews.borland.com> X-Trace: 26 May 2000 10:30:36 -0800, 195.130.150.5 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200