|
Re: Images do not appear in deployed application [message #101105 is a reply to message #101079] |
Mon, 04 August 2008 15:54 |
Stefan Messages: 316 Registered: July 2009 |
Senior Member |
|
|
Hi Emmanuel,
have you tried omitting the leading backslash when registering, e.g.
Graphics.getImage("resources/images/image.png",classLoader);
instead of
Graphics.getImage("/resources/images/image.png",classLoader);
?
Regards,
Stefan.
Emmanuel schrieb:
> Hi,
>
> I store my images in src/resources/images.
>
> I use the following to get images for my treeviewers and actions :
> Graphics.getImage("/resources/images/image.png",classLoader);
>
> In eclipse, everything works fine but in my deployed application, images
> do not appear... except those which are decorated ! Furthermore, I get
> images used for decoration in the same way than the others !!!
>
> I have no exception or error messages saying that images could not be
> found...
>
> Any ideas ?
>
> Emmanuel
>
|
|
|
Re: Images do not appear in deployed application [message #101149 is a reply to message #101105] |
Tue, 05 August 2008 07:28 |
Emmanuel Marchal Messages: 59 Registered: July 2009 |
Member |
|
|
Sometimes the solution of a problem is very easy... like here !
Thanks a lot, Stephan
Stefan Roeck wrote:
> Hi Emmanuel,
> have you tried omitting the leading backslash when registering, e.g.
> Graphics.getImage("resources/images/image.png",classLoader);
> instead of
> Graphics.getImage("/resources/images/image.png",classLoader);
> ?
> Regards,
> Stefan.
> Emmanuel schrieb:
>> Hi,
>>
>> I store my images in src/resources/images.
>>
>> I use the following to get images for my treeviewers and actions :
>> Graphics.getImage("/resources/images/image.png",classLoader);
>>
>> In eclipse, everything works fine but in my deployed application, images
>> do not appear... except those which are decorated ! Furthermore, I get
>> images used for decoration in the same way than the others !!!
>>
>> I have no exception or error messages saying that images could not be
>> found...
>>
>> Any ideas ?
>>
>> Emmanuel
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02718 seconds