Let’s say I put a Folder named “Images” with Image1.jpg inside a Jar File named ImageJar. Then I drop the Jar file in my C:\ Directory. How will I be able to contact the Jar, Get inside It’s Images folder and load up Image1.jpg ?
Will it be something like this ?
String ImageFile = “C:/ImageJar/Images/Image1.jpg”;
URL ImageURL = getClass().getResource(ImageFile);
Image Picture = new ImageIcon(ImageURL).getImage();