Article View: borland.public.jbuilder.java.swing
Article #9267Re: JPanel refresh problem
From: Paul Furbacher
Date: Mon, 08 May 2000 00:00
Date: Mon, 08 May 2000 00:00
14 lines
956 bytes
956 bytes
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)
Technical Details
Message-ID:
<391738B5.5EBFDB4D@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3916C2E3.4C184D1B@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: Paul Furbacher <pf@bilbo.bio.purdue.edu> Subject: Re: JPanel refresh problem Date: 2000/05/08 Message-ID: <391738B5.5EBFDB4D@bilbo.bio.purdue.edu> X-Deja-AN: 620846250 Content-Transfer-Encoding: 7bit References: <3916C2E3.4C184D1B@sensiva.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.swing