🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JPanel + images

#9216
From: John P. McGrath
Date: Sun, 14 May 2000 00:00
18 lines
1171 bytes
On Fri, 12 May 2000 11:19:16 +0200, JPBallet wrote:

> The problem is that several pictures become visible (the
> first one and the last one in my frame)  then if i refresh
> the application by clicking a button for example. The good
> pictures appear. In fact i don't understand how put
> pictures ( created in a class)  into a Jpanel of an other
> class.

It looks as if your code is adding the images to a MediaTracker, but it 
does not appear to call any of the MediaTracker wait methods.

Perhaps you should call tracker.waitForAll() before the repaint().

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.1389278977f2395d989926@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8fe9js$nl76@bornews.borland.com> <MPG.138583b3e96de040989919@forums.borland.com> <8fghn9$el911@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,943ecd5ebf895d8f
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: JPanel  + images
Date: 2000/05/14
Message-ID: <MPG.1389278977f2395d989926@forums.borland.com>
X-Deja-AN: 623451313
References: <8fe9js$nl76@bornews.borland.com> <MPG.138583b3e96de040989919@forums.borland.com> <8fghn9$el911@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing