Article View: borland.public.jbuilder.java.swing
Article #8979Re: JInternalFrame icon
From: Joi Ellis
Date: Tue, 20 Jun 2000 00:00
Date: Tue, 20 Jun 2000 00:00
24 lines
1514 bytes
1514 bytes
Philippe wrote:
>
> If I set a color as transparent in gif file. When I use it as the icon for a JInternalFrame, it sometimes(randomly) set the color either as transparent or as black.
>
> String imageFile = "images/my.gif";
> ImageIcon EmptyIcon = new ImageIcon(getClass().getResource(imageFile));
> setFrameIcon((Icon)EmptyIcon);
>
> Is this a bug in the VM or am I doing something wrong?
There are VM bugs handling transparent gifs. For starters, see:
http://developer.java.sun.com/developer/bugParade/bugs/4175560.html
It varies with the platform and the JVM version.
--
Joi Ellis Software Engineer
Aravox Technologies joi@aravox.com, gyles19@visi.com
No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried. Anything
that kicks a monopoly in the pants has got to be good for something.
- Chris Johnson
Technical Details
Message-ID:
<394FC984.82242EE9@aravox.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<394fb1fe@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8d4271513c6dcdb2 X-Google-Attributes: gid111d45,public From: Joi Ellis <joi@aravox.com> Subject: Re: JInternalFrame icon Date: 2000/06/20 Message-ID: <394FC984.82242EE9@aravox.com> X-Deja-AN: 636921272 Content-Transfer-Encoding: 7bit References: <394fb1fe@dnews> To: Philippe <philb@cae.ca> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Aravox Technologies Mime-Version: 1.0 Reply-To: joi@aravox.com Newsgroups: borland.public.jbuilder.java.swing