I need to get a resource image file in a java project. What I\'m doing is:
URL url = TestGameTable.class.getClass(). getClassLoader().getResource(\
Instead of explicitly writing the class name you could use
this.getClass().getResource("/unibo/lsb/res/dice.jpg");