We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4102acb commit f0cb0eeCopy full SHA for f0cb0ee
sources/net.sf.j2s.java.core/src/netscape/javascript/JSObject.java
@@ -16,6 +16,7 @@
16
17
import java.applet.Applet;
18
import java.applet.AppletContext;
19
+import java.applet.JSApplet;
20
21
/**
22
*
@@ -252,4 +253,12 @@ public static JSObject getWindow(Applet applet) throws JSException {
252
253
jsobject.obj = /** @j2sNative context.html5Applet._window || */ null;
254
return jsobject;
255
}
256
+
257
+ public static JSObject getWindow(JSApplet applet) throws JSException {
258
+ JSObject jsobject = new JSObject();
259
+ @SuppressWarnings("unused")
260
+ AppletContext context = applet.getAppletContext();
261
+ jsobject.obj = /** @j2sNative context.html5Applet._window || */ null;
262
+ return jsobject;
263
+ }
264
0 commit comments