The example I gave you is for relative file location. That is, your call should look something like this: new Shoes(199.99, "images/shoe.jpg");
This requires the 'images' folder to be here:
C:\....\src\badmintonstore\images\shoe.jpg
if you don't want to use relative locations, just do:
icon = new JLabel(new ImageIcon(path));
They can be a pain to figure out at first, but you will be thankful you figured out relative paths later.