home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin2000.exe / ACMain.___ (.txt) < prev    next >
Encoding:
Java Class File  |  2001-10-19  |  1.2 KB  |  45 lines

  1. import java.awt.Component;
  2. import java.awt.Frame;
  3. import java.awt.Window;
  4. import java.io.File;
  5.  
  6. public class ACMain {
  7.    private AIPars rawinfo;
  8.    private ACIntf iface;
  9.  
  10.    public ACMain() {
  11.       this.startApp();
  12.    }
  13.  
  14.    public static void main(String[] var0) {
  15.       new ACMain();
  16.    }
  17.  
  18.    public void startApp() {
  19.       File var1 = new File(ACutil.getAbsolutePath("AIF.OCF"));
  20.       if (!var1.exists()) {
  21.          System.out.println("Error initializing program: Cannot Find Init File.");
  22.          Frame var2 = new Frame();
  23.          ((Component)var2).reshape(50, 50, 200, 200);
  24.          ((Window)var2).show();
  25.       } else {
  26.          this.rawinfo = new AIPars(var1);
  27.          this.iface = new ACIntf(this, this.rawinfo);
  28.          ACgldat.iface = this.iface;
  29.          this.iface.show();
  30.          this.iface.initAppletSelector();
  31.       }
  32.    }
  33.  
  34.    public void cleanUpAndExit() {
  35.       this.iface = null;
  36.       this.rawinfo = null;
  37.       System.gc();
  38.  
  39.       try {
  40.          System.exit(1);
  41.       } catch (Exception var1) {
  42.       }
  43.    }
  44. }
  45.