2003/10/13 01:00:41
[org.ibex.core.git] / src / org / xwt / Main.java
index 25fc8e2..902cb92 100644 (file)
@@ -81,11 +81,18 @@ public class Main {
         // FIXME put the splash screen back in
         if (Log.on) Log.log(Main.class, "loading xwar");
 
-        Res rr = Res.stringToRes(origin, true);
-        XWT xwt = new XWT(rr);
-        Template.getTemplate(((Res)rr.get(initialTemplateName)).addExtension(".xwt")).apply(new Box(), null, xwt);
+        final Res rr = Res.stringToRes(origin, true);
+        final XWT xwt = new XWT(rr);
+        final String initialTemplateName_ = initialTemplateName;
 
-        Message.Q.startQ();
+        new Thread(new Runnable() { 
+            public void run() {
+                Template.getTemplate(((Res)rr.get(initialTemplateName_)).addExtension(".xwt")).apply(new Box(), null, xwt);
+                Message.Q.startQ();
+            }
+        }).start();
+        
+        Platform.running();
     }
 
 }