do you get any error message while doing this...?
probably that might help you to track exactly where it is searching
for googlecode.png.


--
Aditya


On Mon, Aug 9, 2010 at 2:44 PM, kstokes <[email protected]> wrote:

>  I'm using Eclipse on Windows.
>
>  I have added a GWTCanvas to the demo app and am trying to load an
> image and display it with code which is
> omething like this:
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader
>
>
> My problem is that the image only loads and displays if I have a
> complete URL like
>
>
> //                  String[] imageUrls = new String[] {"
> http://www.knivesplus.com/
> media/SC-104OT.jpg"};  /* This works fine */
>                    String[] imageUrls = new String[]
> {"images/GoogleCode.png"};  /*
> This does not work. */
>
> However, I have created an 'images' folder in my  war folder in
> Eclipse, and the following image in the HTML displays just fine:
>   <img src="images/GoogleCode.png"><img>
>
>
>  I don't understand why the app has no problem reading the image from
> the relative path when displaying the HTML, but cannot find the image
> using the ImageLoader class.
>
>  What can I do so that I can add images to my eclipse project which I
> can then use with GWTCanvas?
>
> --
> 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]<google-web-toolkit%[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