Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem Showing an icon using Application Window
Problem Showing an icon using Application Window [message #61175] Tue, 03 June 2003 13:56
Eclipse UserFriend
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
Previous Topic:Adding Feature
Next Topic:Trouble with javaeditor example as run-time workbench.
Goto Forum:
  


Current Time: Sun May 11 23:54:29 EDT 2025

Powered by FUDForum. Page generated in 0.02943 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top