How do I add an icon as a classpath resource to an SWT window created with WindowBuilder?
问题 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. That brings up the image chooser dialog box: 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! 回答1: To easily add an icon to my classpath, I found my desired icon, right clicked