-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
import java.net.*;
import org.bouncycastle.util.encoders.Base64;
import org.xwt.js.*;
import org.xwt.util.*;
+import org.xwt.translators.*;
/** Entry point for the XWT Engine; handles splash screen, initial xwar loading, and argument processing */
public class Main {
final String initialTemplate_f = initialTemplate;
ThreadMessage.newthread(new JS.Callable() {
public Object call(JS.Array args) throws JS.Exn {
- new Box(initialTemplate_f, null);
+ Box b = new Box();
+ Template.getTemplate(initialTemplate_f, null).apply(b, null, null, null, 0, 0);
doneInitializing = true;
if (Surface.allSurfaces.size() == 0) {
Log.log(this, "exiting because all surfaces are gone");