"I've got my images in a jar file. Every time I try to load them, they are not loaded. How can I access the images in the jar the right way?"
Solution:
If you want to load an ImageIcon from your jar file, you can use this code:
ImageIcon image = new ImageIcon();
image = new ImageIcon("yourclass"
If you want to load an Image from your jar file you can use this code:
Be sure to replace
Keine Kommentare:
Kommentar veröffentlichen