🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JPanel refresh problem

#9266
From: Aurelien Broszniowski
Date: Mon, 08 May 2000 00:00
16 lines
941 bytes
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: <3916C2E3.4C184D1B@sensiva.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f01bc2622e0cd022,start
X-Google-Attributes: gid111d45,public
From: Aurelien Broszniowski <aurelien@sensiva.com>
Subject: JPanel refresh problem
Date: 2000/05/08
Message-ID: <3916C2E3.4C184D1B@sensiva.com>
X-Deja-AN: 620836444
Content-Transfer-Encoding: 7bit
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