Put png icon

3 views
Skip to first unread message

Ariane Felix

unread,
Sep 20, 2007, 7:59:15 AM9/20/07
to Google Web Toolkit
I putted a png icon using the Image Component, but the background of
the icon appears gray, how can I make it appear transparent?

Thanks!

Robert Hanson

unread,
Sep 20, 2007, 8:27:30 AM9/20/07
to Google-We...@googlegroups.com
Correct me if I am wrong, what you mean to say is that it looks gray
in Internet Explorer 6. Right?

IE6 does not support PNG without some hackery.

The GWT-WL has a PNGImage widget that does the hackery for you:
http://gwt-widget.sourceforge.net

And I thought that PNG support for IE6 was going to make its way into
GWT 1.4, but it might only be when you are using an image bundle.
http://code.google.com/webtoolkit/documentation/com.google.gwt.user.client.ui.ImageBundle.html

Do a Google search if you want to know more about the issue.

Rob
http://roberthanson.name

Ariane Felix

unread,
Sep 20, 2007, 8:53:07 AM9/20/07
to Google Web Toolkit
Well, I didn't tested in IE actually, but I will check that. Anyway, I
tested only in the hosted mode, and it appears gray.

Thank you!

On 20 set, 09:27, "Robert Hanson" <iamroberthan...@gmail.com> wrote:
> Correct me if I am wrong, what you mean to say is that it looks gray
> in Internet Explorer 6. Right?
>
> IE6 does not support PNG without some hackery.
>
> The GWT-WL has a PNGImage widget that does the hackery for you:http://gwt-widget.sourceforge.net
>
> And I thought that PNG support for IE6 was going to make its way into

> GWT 1.4, but it might only be when you are using an image bundle.http://code.google.com/webtoolkit/documentation/com.google.gwt.user.c...


>
> Do a Google search if you want to know more about the issue.
>

> Robhttp://roberthanson.name

Reinier Zwitserloot

unread,
Sep 20, 2007, 1:35:21 PM9/20/07
to Google Web Toolkit
Hosted mode == IE6 on Windows, Ariane.

Use the ImageBundle (GWT 1.4), that'll clear it right up; it fixes PNG
on IE6 with a hack.

Ariane Felix

unread,
Sep 20, 2007, 2:55:48 PM9/20/07
to Google Web Toolkit
Thank you, I'll do that.

Vi

unread,
Nov 6, 2007, 9:54:55 AM11/6/07
to Google Web Toolkit
I have the same issue with PNG images not working with transparency
correctly in IE. Looking at the PNGImage code, it says that the
setUrl() method should not be called. I am using a servlet to create
a PNG image dynamically so the url cannot be hard coded. Is there a
workaround for this? ImageBundle presents the same problem where the
pgn file paths must be on hard coded.
Reply all
Reply to author
Forward
0 new messages