home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / text / ComponentView$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  841 b   |  37 lines

  1. package javax.swing.text;
  2.  
  3. import java.awt.Component;
  4. import java.awt.Container;
  5.  
  6. class ComponentView$1 implements Runnable {
  7.    // $FF: synthetic field
  8.    private final ComponentView this$0;
  9.  
  10.    ComponentView$1(ComponentView var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public void run() {
  15.       Document var1 = this.this$0.getDocument();
  16.  
  17.       try {
  18.          if (var1 instanceof AbstractDocument) {
  19.             ((AbstractDocument)var1).readLock();
  20.          }
  21.  
  22.          this.this$0.setComponentParent();
  23.          Container var2 = this.this$0.getContainer();
  24.          if (var2 != null) {
  25.             this.this$0.preferenceChanged((View)null, true, true);
  26.             ((Component)var2).repaint();
  27.          }
  28.       } finally {
  29.          if (var1 instanceof AbstractDocument) {
  30.             ((AbstractDocument)var1).readUnlock();
  31.          }
  32.  
  33.       }
  34.  
  35.    }
  36. }
  37.