Hello.
I’ve been trying to load an image to a static final variable and use it from another class, but I couldn’t find a way to do it.
I’m quite new to loading images in Java and displaying them…
I have used this method to load an image, but it can’t be used in static context…
Image im = new ImageIcon(getClass().getResource(“resourcename.bmp”)).getImage();
any help would be greatly appreciated…