1 Clazz.declarePackage ("swingjs");
2 Clazz.load (["swingjs.JSThread"], "swingjs.JSAppletThread", ["javax.swing.SwingUtilities"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, swingjs, "JSAppletThread", swingjs.JSThread);
7 Clazz.makeConstructor (c$,
8 function (ap, group, name) {
9 Clazz.superConstructor (this, swingjs.JSAppletThread, [group, name]);
11 }, "swingjs.JSAppletPanel,ThreadGroup,~S");
12 Clazz.overrideMethod (c$, "run1",
14 mode = this.ap.run1 (mode);
15 if (mode != 2) this.dispatchAndReturn (null, mode);
17 Clazz.defineMethod (c$, "dispatchAndReturn",
20 javax.swing.SwingUtilities.invokeLater (((Clazz.isClassDefined ("swingjs.JSAppletThread$1") ? 0 : swingjs.JSAppletThread.$JSAppletThread$1$ ()), Clazz.innerTypeInstance (swingjs.JSAppletThread$1, this, Clazz.cloneFinals ("m", m))));
22 c$.$JSAppletThread$1$ = function () {
24 c$ = Clazz.declareAnonymous (swingjs, "JSAppletThread$1", null, Runnable);
25 Clazz.overrideMethod (c$, "run",
27 this.b$["swingjs.JSAppletThread"].run1 (this.f$.m);