I'm using the Netbeans IDE and when I use the "Clean and Build Project" to make an executable jar file of my program, it doesn't keep the images. I have the images located in "src/resources".
I am getting the images though code the following way:
setIcon(new javax.swing.ImageIcon(getClass().getResource("icon.png")));
How do I get the images to show up in the executable jar file?