How do I add an icon as a classpath resource to an SWT window created with WindowBuilder?

Posted by Zoot on Stack Overflow See other posts from Stack Overflow or by Zoot
Published on 2010-12-23T19:49:52Z Indexed on 2010/12/23 19:54 UTC
Read the original article Hit count: 391

Filed under:
|
|
|

I'm trying to add an external icon from an *.ico file to a window that I'm creating using the WindowBuilder design window. I can select the shell, which brings up an "image" properties field. alt text That brings up the image chooser dialog box: alt text

How do I make my icon show up in this menu as a classpath resource? The image works if an absolute path is given, but I don't want to use that option in my application.

Thanks!

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about swt