home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Component;
- import java.awt.Frame;
- import java.awt.Window;
- import java.io.File;
-
- public class ACMain {
- private AIPars rawinfo;
- private ACIntf iface;
-
- public ACMain() {
- this.startApp();
- }
-
- public static void main(String[] var0) {
- new ACMain();
- }
-
- public void startApp() {
- File var1 = new File(ACutil.getAbsolutePath("AIF.OCF"));
- if (!var1.exists()) {
- System.out.println("Error initializing program: Cannot Find Init File.");
- Frame var2 = new Frame();
- ((Component)var2).reshape(50, 50, 200, 200);
- ((Window)var2).show();
- } else {
- this.rawinfo = new AIPars(var1);
- this.iface = new ACIntf(this, this.rawinfo);
- ACgldat.iface = this.iface;
- this.iface.show();
- this.iface.initAppletSelector();
- }
- }
-
- public void cleanUpAndExit() {
- this.iface = null;
- this.rawinfo = null;
- System.gc();
-
- try {
- System.exit(1);
- } catch (Exception var1) {
- }
- }
- }
-