I just recently had a similar
problem. And I also think Sproingle(sp?)'s new FAQ thread covered this (can't find the link).
The solution that worked for me was answered in the above thread with
1
| URL url = this.getClass().getClassLoader().getResource("resources/Ball.png"); |
The one in sprongles FAQ sounded like it was more reliable, it was something along these lines:
1
| Thead.getCurrent.load.... |
Oh god, it was nothing like that, but it started with Thread. :L
*searches for spoingle faq*
[EDIT]
Found it!1 2 3 4 5 6
| Thread.currentThread().getContextClassLoader().getResourceAsStream("images/backgrounds/sky.jpg");
getClass().getResourceAsStream("config/settings.xml"); |