I'm trying to load an image, like this:
URL url = getClass().getResource("image.jpg");
File f = new File(url.getPath());
the image.jpg file is inside the package:
I get this exception.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
not sure what I'm doing wrong.