Basically still trying to learn Java and currently trying to load pics and sounds from my Jar file, and someone gave me a code snippet to try, but I'm unable to get it to work via Netbeans
Basically FileInputStream seems to be incompatible with getResourceAsStream (expecting fileInputstream not InputStream).
Plus how do I use the image - I've only used label.setIcon which doesn't like BufferedImage?!
// In this example, image.jpg must be in the same folder inside the JAR file as the class FileInputStream in = getClass().getResourceAsStream("image.jpg"); // Use your favourite API (for example ImageIO) to load the image from the input stream BufferedImage image = ImageIO.read(in); // Close the stream in.close(); picLabel.setIcon(image);