Basically I had a image in the jar file and I got that image url and turned it into a image icon and it worked perfectly this is the code I used
URL resource1 = getClass.getResource(“goldcoin.jpg”);
ImageIcon icon1 = new ImageIcon(resource1);
But I needed to change the image so I changed the old image named it the same and added it to the project and deleted the old one it is the same name and the same file name and it is in the same place. I have tried many things and found a question the same as this but all the answers for it don’t work so please could you help me. Thank you I deleted it and added it again and it worked thanks for your help.