Yes just use
URL url = this.getClass().getClassLoader().getResource("resources/Ball.png");
I was able to load images fine locally, and I've now tapped into an Applet and am attempting, through a SwingWorker, to load images relatively to my classpath. Now this is all fine if I know exactly what the fileName is. But what If I would like to load ALL the files in a folder. That is, how can I get a list of fileNames in a folder relatively? Locally, or with the File class, you can do it with File.listFiles() iirc - however this works only for absolute paths. Is there a simliar one for relative paths?
I've tried looking at ClassLoader and Class for methods but come up short.