AppletLoader: slight tweak to use classloader the way Oracle recommend.
This commit is contained in:
parent
4d59d460d0
commit
020a55d74f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue