AppletLoader: slight tweak to use classloader the way Oracle recommend.

This commit is contained in:
kappa1 2010-08-23 18:12:06 +00:00
parent 4d59d460d0
commit 020a55d74f
1 changed files with 1 additions and 1 deletions

View File

@ -1434,7 +1434,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
*/
protected Image getImage(String s) {
try {
URL url = ClassLoader.getSystemClassLoader().getResource("/"+s);
URL url = Thread.currentThread().getContextClassLoader().getResource("/"+s);
// if image not found in jar, look outside it
if (url == null) {