1 Clazz.declarePackage ("swingjs.api");
\r
2 c$ = Clazz.declareType (swingjs.api, "Interface");
\r
3 c$.getInstance = Clazz.defineMethod (c$, "getInstance",
\r
4 function (name, isQuiet) {
\r
7 Clazz._isQuiet = isQuiet;
\r
8 }System.out.println ("swingjs.api.Interface creating instance of " + name);
\r
9 var x = Clazz._4Name (name);
\r
11 Clazz._isQuiet = false;
\r
12 }return (x == null ? null : x.newInstance ());
\r
14 if (Clazz.exceptionOf (e, Exception)) {
\r
15 System.out.println ("Interface.java Error creating instance for " + name + ": \n" + e);
\r