🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Replacing the JFrame Java icon

#8083
From: Bob Vasseur
Date: Sat, 21 Oct 2000 00:00
11 lines
1043 bytes
This is probably a repeat question. I think that I have seen it before but
can't remember the solution. I am able to replace the coffee cup icon, but
it appears all black, whether I use a 16 X 16 or a 32 X 32 gif image. The
replacement code is essentially:

myFrame.setIconImage
(Toolkit.getDefaultToolkit().getImage( "NewImage.gif" ))

Do you have to use a particular transparency color, or something like that?
All button icons are OK. Just the frame icon appears this way. I am using
3.5 on NT.
Technical Details
Message-ID: <39f1a7a3$1_1@dnews>
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,30af6aa8648b84de,start
X-Google-Attributes: gid111d45,public
From: "Bob Vasseur" <vasseura@mscomm.com>
Subject: Replacing the JFrame Java icon
Date: 2000/10/21
Message-ID: <39f1a7a3$1_1@dnews>
X-Deja-AN: 684151929
X-Trace: 21 Oct 2000 07:26:43 -0800, 209.189.53.72
X-MSMail-Priority: Normal
X-Priority: 3
Reply-To: "Bob Vasseur" <vasseura@mscomm.com>
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300