Problem Showing an icon using Application Window [message #61175] |
Tue, 03 June 2003 13:56 |
Eclipse User |
|
|
|
I hope this is the right forum for this question, If it is not I apologize
in advance. The SWT forum suggested trying here.
I've created a standalone application, whose main class is derived from
ApplicationWindow. In the constructor, I call setDefaultImage to set the
default image for the application. This image is a gif file and is loaded
from an imageStore which references a gif from a project directory.
When the application is run from within the Eclipse IDE (debug or run),
the icon appears on the upper left corner of the title bar and on the
button on the Windows task manager, just as it is suppose to.
However, when I package the application up (as a jar) and run it outside
the Eclipse IDE, all I get is a lovely red square as the icon. What
confuses me, is when I stick in a whole bunch of debugging statements, I
can see the code running that loads the image. In addition, all of the
other images on the toolbar are appearing as they should.
I tried setting the shell image as well, but that didn't seem to make a
difference. The application image is correct in the jar file, as I have
extracted it and viewed via other tools and it displays properly.
Does anyone have any thoughts on what else I can try?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02943 seconds