if(jcpApplet==null || jcpApplet.getParameter("highlightTable")==null) return; Class<?>[] paratypes={new Applet().getClass()}; Class<?> jso = Class.forName("netscape.javascript.JSObject"); Method getWindowMethod=jso.getMethod("getWindow", paratypes);
Class<?>[] paratypes={new Applet().getClass()}; Class<?> jso = Class.forName("netscape.javascript.JSObject"); Method getWindowMethod=jso.getMethod("getWindow", paratypes);
AppletStub stub = new AppletStub() { // lots of code including defining the parameter 'myParameter' }; Applet a = new Applet(); a.setStub(stub); a.init(); // ...