hi, in my application (a JFrame, not Applet) I want to load images stored in the project into the app. Using Toolkit.getDefaultToolkit().getImage("a.jpg"); works fine in my own box, but when I compile it, the images aren´t shown. I've tried
java.net.URL imageURL = MyClass.class.getClassLoader().getResource("1b.jpg"); but the images are still not shown...my idea is getting the jar with all the images ( I also have some MP3· and XML files) and show them from there. So far , when I run the .jar, it searchs for the images relatively from the folder I'm running it (that's why they're not shown), but my idea is for it to look for the images, MP3·, XML inside the compiled jar.
Thanx in advance
java.net.URL imageURL = MyClass.class.getClassLoader().getResource("1b.jpg"); but the images are still not shown...my idea is getting the jar with all the images ( I also have some MP3· and XML files) and show them from there. So far , when I run the .jar, it searchs for the images relatively from the folder I'm running it (that's why they're not shown), but my idea is for it to look for the images, MP3·, XML inside the compiled jar.
Thanx in advance