Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which JSObject should I be using?

I'm trying to make a Java applet interact through javascript in its enclosing environment.

Up until now, I've been using netscape.javascript.JSObject as the type to deal with calls to Java functions from JS, but I've just discovered that there's also a sun.plugin.javascript.JSObject, and even a sun.plugin.javascript.navig.JSObject !

I've tried finding out more about these two other versions to no avail. Should I just stick to netscape.javascript.JSObject?

like image 619
rtpg Avatar asked Nov 13 '22 04:11

rtpg


1 Answers

I've tried finding out more about these two other versions to no avail. Should I just stick to netscape.javascript.JSObject?

Yes. It is the public interface to other classes that might support it behind the scenes.

like image 196
Andrew Thompson Avatar answered Nov 16 '22 02:11

Andrew Thompson