🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9175

Re: JPanel refresh problem

#9175
From: Thomas Keitel
Date: Tue, 09 May 2000 00:00
26 lines
1142 bytes
Hi,

try jPanel.doLayout() after removing the components

Thomas




Aurelien Broszniowski schrieb:

> Hi!
> 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!
>
> I've already met this problem before but I don't remember what was the
> solution, so if anybody can help me, that would be great.
>
> Thanks,
> -Aur
Technical Details
Message-ID: <3917E314.27F23AB3@fiscus.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: Thomas Keitel <keitel_thomas@fiscus.de>
Subject: Re: JPanel refresh problem
Date: 2000/05/09
Message-ID: <3917E314.27F23AB3@fiscus.de>
X-Deja-AN: 621191543
Content-Transfer-Encoding: 7bit
References: <3916C2E3.4C184D1B@sensiva.com>
To: aurelien@sensiva.com
X-Posting-Agent: Hamster/1.3.15.0
X-Accept-Language: de
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing