I tried using the example you provided:

new Button("<img src='" + GWT.getHostPageBaseUrl() +
"img/pdficon_large.png'>");

and it basically put the img src= tag above as text on the button.  I am
going to try to create an image object first using the path above:
 "GWT.getHostPageBaseURL() + "pdficon_large.png" first and then just use
the image object in the creation of the PushButton instead of adding the
"<img src=> tag you suggested.  I also put the image files in the same
directory as the HTML file.  Wish me luck.....

Thanks,

Joshua

On Tue, Jan 24, 2012 at 11:03 AM, Thomas Broyer <[email protected]> wrote:

> new Button("<img src='" + GWT.getHostPageBaseUrl() +
> "img/pdficon_large.png'>");
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/vBkHDauH6tsJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to