home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIPHEFT062001.ISO / browser / nc32lyc / comm.z / java40.jar / netscape / applet / DerivedAppletFrame$AppletEventDispatchThread.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-15  |  2.8 KB  |  62 lines

  1. package netscape.applet;
  2.  
  3. import java.awt.EventDispatchThread;
  4. import java.awt.EventQueue;
  5. import java.awt.Window;
  6. import java.util.Vector;
  7.  
  8. class DerivedAppletFrame$AppletEventDispatchThread extends EventDispatchThread {
  9.    // $FF: synthetic field
  10.    private final DerivedAppletFrame this$DerivedAppletFrame;
  11.  
  12.    DerivedAppletFrame$AppletEventDispatchThread(DerivedAppletFrame var1, ThreadGroup var2) {
  13.       super(var2, "AppletEventDispatcher");
  14.       this.this$DerivedAppletFrame = var1;
  15.       this.this$DerivedAppletFrame = var1;
  16.    }
  17.  
  18.    public void run() {
  19.       try {
  20.          super.run();
  21.       } catch (SecurityException var11) {
  22.          this.this$DerivedAppletFrame.showAppletException(var11, "security violation: " + ((Throwable)var11).getMessage());
  23.       } catch (ThreadDeath var12) {
  24.          this.this$DerivedAppletFrame.showAppletStatus("killed");
  25.       } catch (Exception var13) {
  26.          this.this$DerivedAppletFrame.showAppletException(var13, "exception: " + ((Throwable)var13).toString());
  27.       } catch (Error var14) {
  28.          this.this$DerivedAppletFrame.showAppletException(var14, "error: " + ((Throwable)var14).toString());
  29.       } catch (Throwable var15) {
  30.          var15.printStackTrace();
  31.       }
  32.  
  33.       this.this$DerivedAppletFrame.dispose();
  34.       Vector var1 = this.this$DerivedAppletFrame.topLevelWindows;
  35.       synchronized(var1){}
  36.  
  37.       try {
  38.          for(int var3 = this.this$DerivedAppletFrame.topLevelWindows.size() - 1; var3 >= 0; --var3) {
  39.             Window var4 = (Window)this.this$DerivedAppletFrame.topLevelWindows.elementAt(var3);
  40.             var4.dispose();
  41.          }
  42.       } catch (Throwable var16) {
  43.          throw var16;
  44.       }
  45.  
  46.       ThreadGroup var17 = Thread.currentThread().getThreadGroup();
  47.       int var2 = var17.activeGroupCount();
  48.       ThreadGroup[] var18 = new ThreadGroup[var2];
  49.       var17.enumerate(var18, true);
  50.  
  51.       for(int var19 = 0; var19 < var2; ++var19) {
  52.          EventQueue.removeQueue(var18[var19]);
  53.       }
  54.  
  55.       EventQueue.removeQueue(var17);
  56.       this.this$DerivedAppletFrame.handler = null;
  57.       System.gc();
  58.       System.runFinalization();
  59.       System.gc();
  60.    }
  61. }
  62.