removed securityException caused by accessing class directly from sun. package
[jalview.git] / src / jalview / bin / JalviewLite.java
index 0091e3f..0fb0662 100755 (executable)
@@ -177,12 +177,12 @@ public class JalviewLite extends Applet
                       .toLowerCase().indexOf("false") > -1))
       {
         StructureSelectionManager.getStructureSelectionManager()
-                .mouseOverVamsasSequence(sq, sq.findIndex(apos));
+                .mouseOverVamsasSequence(sq, sq.findIndex(apos), null);
       }
       else
       {
         StructureSelectionManager.getStructureSelectionManager()
-                .mouseOverVamsasSequence(sq, apos);
+                .mouseOverVamsasSequence(sq, apos, null);
       }
 
     }
@@ -842,13 +842,23 @@ public class JalviewLite extends Applet
     // remove any handlers that might be hanging around from an earlier instance
     try
     {
-       JSObject scriptObject = JSObject.getWindow(this);       
+      if (debug)
+      {
+        System.err.println("Applet context is '"+getAppletContext().getClass().toString()+"'");
+      }
+      JSObject scriptObject = JSObject.getWindow(this);
+      if (debug && scriptObject!=null)
+      {
+        System.err.println("Applet has Javascript callback support.");
+      }
+      
     } catch (Exception ex)
     {
+      System.err
+      .println("Warning: No JalviewLite javascript callbacks available.");
       if (debug)
       {
-        System.err
-                .println("Warning: No JalviewLite javascript callbacks available.");
+        ex.printStackTrace();
       }
     }
     /**