// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
-import java.lang.reflect.*;
-import java.applet.*;
import java.net.*;
import java.util.*;
import java.io.*;
* IP).
*/
public static java.net.InetAddress originAddr = null;
+ public static String originHost = null;
/** the URL where the initial xwar came from. */
public static String origin = null;
if (Log.on) Log.log(Main.class, "instantiating " + initialTemplate);
final String initialTemplate_f = initialTemplate;
- ThreadMessage.newthread(new JS.Function() {
- public Object _call(JS.Array args) throws JS.Exn {
- new Box(initialTemplate_f, null);
- doneInitializing = true;
- if (Surface.allSurfaces.size() == 0) {
- Log.log(this, "exiting because all surfaces are gone");
- Platform.exit();
- }
+ ThreadMessage.newthread(new JS.Callable() {
+ public Object call(JS.Array args) throws JS.Exn {
+ 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");
+ Platform.exit();
+ }
return null;
}
});