I have tried and tried, but no matter what, I cannot add a simple .png icon image to a button control in WindowBuilder. I thought this answer to the question might help, but it doesn't.
Obviously, I want to add a group of .png files to the "classpath", whatever that is, but I cannot see how to do so. I've tried copying them to the /src folder, the /libs folder, I've tried bundling them up in to a .zip file and renaming it .jar, I've tried adding them to the Build Path several different ways… Nothing works.
Every time, when I click the […] button next to "icon" in the Properties pane in WindowBuilder while I have a button control selected, I am given a choice of four ways to have an icon. Only the first (Classpath resource) seems to be a truly viable option if I want the images to appear in the final program, but I only see the same six .jar files and one .zip file in the Parameters list on the left. Why can I never see the .png files I created, nor the .jar file I made out of them?
(I briefly toyed with the idea of posting some screenshots here—and I can still do so, if it would help—but I felt it might be redundant given they would be so similar to the ones in that other post I mentioned.)