import java.util.*;
import java.io.*;
import java.awt.*;
-import org.bouncycastle.util.encoders.Base64;
import org.xwt.js.*;
import org.xwt.util.*;
import org.xwt.translators.*;
+import org.xwt.plat.*;
+import org.bouncycastle.util.encoders.Base64;
/** Entry point for the XWT Engine; handles splash screen, initial xwar loading, and argument processing */
public class Main {
+ // to prevent GCJ from dropping these classes
+ private static final Class[] keep = new Class[] { GCJ.class, Linux.class, Solaris.class, Darwin.class, Win32.class };
+
/**
* FEATURE: this should be implemented using self-emulation
* Used for security checks. If this is null, it means that only
scarImage =
Picture.load((Stream)Main.builtin.get("org/xwt/builtin/scar.png"),
new Scheduler.Task() { public void perform() throws Exception {
- new Template(Stream.getInputStream(xwt.resolveStringToResource(startupTemplate, false)), xwt).apply(new Box());
+ xwt.resolveString(startupTemplate, false).call(new Box(), null, null, null, 1);
} });
Scheduler.init();