🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Half life of an icon?

#11576
From: Paul Waldo
Date: Fri, 07 May 1999 00:00
18 lines
1226 bytes
Hi all,

I'm experiencing odd behavior when I set the icon for an application
(JDK 1.1.6).  I use the following code:

    private ImageIcon mMinimizedIcon = new ImageIcon ();
    mMinimizedIcon = new ImageIcon (ProductFrame.class.getResource
("pnp.gif"));
    setIconImage (mMinimizedIcon.getImage ());

After a while I see icon corruption.  On my development machine (NT
4.0), the lower half of the image appears to have "noise" in it.  On
users' machines (Win 95), it looks like someone took a pencil and drew
circles on the icon.  It does not seem to be resolution or color depth
dependent.  Even the icon on the application bar gets corrupted.  Does
anyone have any ideas?  Thanks.

Paul
Technical Details
Message-ID: <37334EE7.C03344DF@bellatlantic.net>
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,9fbf6418701f1ef2,start
X-Google-Attributes: gid111d45,public
From: Paul Waldo <pwaldo@bellatlantic.net>
Subject: Half life of an icon?
Date: 1999/05/07
Message-ID: <37334EE7.C03344DF@bellatlantic.net>
X-Deja-AN: 475296542
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing