i'm doing this combination o javascript and java to try to get the  
jmol Viewer into my other applet.

javascript:
     var bufferApplet = document.applets["JmolBuffer1"];
     bufferApplet.setJmolViewer(_jmolGetApplet().getProperty 
('jmolViewer'));

java:
     public void setJmolViewer(Object v){
       jViewer = (Viewer)v;
     }

the javascript call makes it to the java method, and even makes it  
with an object of the Viewer class! however, when i try to typecast  
it to Viewer, or even do a (v instanceof Viewer), i get a  
PrivilegedActionException. setJmolViewer(Viewer v), so i don't see a  
solution other than typecasting. i'm sure it's something small, but i  
can't for the life of me figure out how to get around this. is there  
anyone who has successfully gotten jmol to interact with another java  
applet that can give me some pointers? i can sort of see my error but  
not how to resolve it.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to