[java]TestGameTable.class.getResource("/unibo/lsb/res/dice.jpg");[/java]
- leading slash to denote the root of the classpath
- slashes instead of dots in the path
- you can call
getResource()
directly on the class.
[java]TestGameTable.class.getResource("/unibo/lsb/res/dice.jpg");[/java]
getResource()
directly on the class.