From f919ae92dcec1fb4eb7f43b8ca4cc0bca95aab3f Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 21 Oct 2008 21:33:50 +0000 Subject: Changes from Tom Hawtin to ensure use of correct class loader --- src/org/jdesktop/applet/util/JNLPAppletLauncher.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/org/jdesktop/applet/util') diff --git a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java index 595f2bc..1c21f8d 100644 --- a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java +++ b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java @@ -37,8 +37,8 @@ * intended for use in the design, construction, operation or * maintenance of any nuclear facility. * - * $Revision: 1.28 $ - * $Date: 2008/10/21 21:28:49 $ + * $Revision: 1.29 $ + * $Date: 2008/10/21 21:33:50 $ * $State: Exp $ */ @@ -1966,7 +1966,10 @@ public class JNLPAppletLauncher extends Applet { */ private void startSubApplet() { try { - subApplet = (Applet)Class.forName(subAppletClassName).newInstance(); + subApplet = (Applet) + Class.forName(subAppletClassName, + true, + Thread.currentThread().getContextClassLoader()).newInstance(); subApplet.setStub(new AppletStubProxy()); } catch (ClassNotFoundException ex) { ex.printStackTrace(); -- cgit v1.2.3