2002/04/28 04:36:08
[org.ibex.core.git] / src / org / xwt / Main.java
index 1817671..aec6296 100644 (file)
@@ -35,11 +35,14 @@ public class Main extends Applet {
     public void paint(Graphics g) { }    // do-nothing method to avoid repaints
     public void update(Graphics g) { }   // do-nothing method, to avoid repaints
 
+    public static Applet applet = null;
+
     /** applet entry point */
     public void init() {
         if ("true".equals(getParameter("showRenders"))) showRenders = true;
         if ("true".equals(getParameter("verbose"))) Log.verbose = true;
-        main(new String[] { getParameter("xwar-url"), "main" });
+        applet = this;
+        main(new String[] { getParameter("initial-xwar-url"), "main" });
     }
 
     /** common entry point */