When I try to run an applet in applet viewer it is not able to find resources (Image). I try to load resource like this:
String cb= this.getCodeBase().toString()
Just use /com/blah/Images/a.png as the path. getResource() is clever enough to find it.
/com/blah/Images/a.png
getResource()