🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: dropping JLabel onto JPanel

#753
From: Alan Shiers
Date: Wed, 08 Dec 2004 17:03
9 lines
1149 bytes
Ok, you can ignore this last post.  I just found the answer to my problem.
John McGrath answered the same problem I was having in another post subject
titled: adding components to JPanel in JScrollPane.

The answer was to use revalidate() instead of repaint().

That certainly worked in this instance as well.  Thanks John.

Alan
Technical Details
Message-ID: <41b734a4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41b72f96@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,e3d7c8a55e0aeecb
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alan Shiers" <ashiers@hfx.eastlink.ca>
Newsgroups: borland.public.jbuilder.java.swing
References: <41b72f96@newsgroups.borland.com>
Subject: Re: dropping JLabel onto JPanel
Date: Wed, 8 Dec 2004 13:03:06 -0400
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 24.222.101.2
Message-ID: <41b734a4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102525604 24.222.101.2 (8 Dec 2004 09:06:44 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail