additional test - http://www.koders.com/java/fid4C9593FE80CE8AA81158AF712B50C7A689488...
authorjprocter <Jim Procter>
Mon, 17 Jan 2011 15:54:27 +0000 (15:54 +0000)
committerjprocter <Jim Procter>
Mon, 17 Jan 2011 15:54:27 +0000 (15:54 +0000)
src/jalview/bin/JalviewLite.java

index 5341a4b..c972025 100755 (executable)
@@ -842,7 +842,13 @@ public class JalviewLite extends Applet
     // remove any handlers that might be hanging around from an earlier instance
     try
     {
-       JSObject scriptObject = JSObject.getWindow(this);       
+      if (getAppletContext() instanceof sun.plugin.javascript.JSContext) {
+        if (debug)
+        {
+          System.err.println("Applet context implements JSContext - should have callback support!");
+        }
+      }
+       JSObject scriptObject = JSObject.getWindow(this);  
     } catch (Exception ex)
     {
       System.err