home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / awt / Window$1DisposeAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.4 KB  |  45 lines

  1. package java.awt;
  2.  
  3. import java.lang.ref.WeakReference;
  4.  
  5. class Window$1DisposeAction implements Runnable {
  6.    // $FF: synthetic field
  7.    final Window this$0;
  8.  
  9.    Window$1DisposeAction(Window var1) {
  10.       this.this$0 = var1;
  11.    }
  12.  
  13.    public void run() {
  14.       GraphicsDevice var1 = this.this$0.getGraphicsConfiguration().getDevice();
  15.       if (var1.getFullScreenWindow() == this.this$0) {
  16.          var1.setFullScreenWindow((Window)null);
  17.       }
  18.  
  19.       Object[] var2;
  20.       synchronized(this.this$0.ownedWindowList) {
  21.          var2 = new Object[this.this$0.ownedWindowList.size()];
  22.          this.this$0.ownedWindowList.copyInto(var2);
  23.       }
  24.  
  25.       for(int var3 = 0; var3 < var2.length; ++var3) {
  26.          Window var4 = (Window)((WeakReference)((WeakReference)var2[var3])).get();
  27.          if (var4 != null) {
  28.             var4.disposeImpl();
  29.          }
  30.       }
  31.  
  32.       this.this$0.hide();
  33.       this.this$0.beforeFirstShow = true;
  34.       this.this$0.removeNotify();
  35.       synchronized(Window.access$200(this.this$0)) {
  36.          if (this.this$0.inputContext != null) {
  37.             this.this$0.inputContext.dispose();
  38.             this.this$0.inputContext = null;
  39.          }
  40.       }
  41.  
  42.       this.this$0.clearCurrentFocusCycleRootOnHide();
  43.    }
  44. }
  45.