I have created a
Java application using JBuilder. My directory structure is
the following(these are generic names):
ProjectFolder
bak
src
package
.java files
images
.jpg files
classes
package
.class files
This structure works fine in JBuilder and jpg images show as they should.
I am using the following code to add images to some JButtons:
ImageIcon("./images/*.jpg")
My problem is when I put the classes/package directory in a jar file. I am also putting the images directory in the same jar. The executable jar does not show the images on the executing program. What have I done wrong? I am using winzip to compress files; I am then changing the file extension to jar. The program executes fine, but without images on my JButtons.
Thanks for any help,
Jason