I'm on a project where I have to display an image on jLabel on the click of a jButton. Now I want to display an image that is already imported into the project (src folder) and I don't want to use the path of the image file inside the .setIcon(path/image.png) method as the path of the image will surely change when I will run the program on an another pc. So is there anyway to do this?