Try something like this for setting the image icon
ImageIcon imageIcon = new ImageIcon(getClass().getResource("myImage.png"));
Your image file should be located within the src folder if your using an IDE. If your not using an IDE , put the image in the same folder as your .java files.