home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / LookAndFeel$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.5 KB  |  40 lines

  1. package javax.swing;
  2.  
  3. import javax.swing.plaf.IconUIResource;
  4.  
  5. class LookAndFeel$1 implements UIDefaults.LazyValue {
  6.    // $FF: synthetic field
  7.    private final Class val$baseClass;
  8.    // $FF: synthetic field
  9.    private final String val$gifFile;
  10.  
  11.    LookAndFeel$1(Class var1, String var2) {
  12.       this.val$baseClass = var1;
  13.       this.val$gifFile = var2;
  14.    }
  15.  
  16.    public Object createValue(UIDefaults var1) {
  17.       byte[][] var2 = new byte[1][];
  18.       SwingUtilities.doPrivileged(new LookAndFeel.2(this, var2));
  19.       if (var2[0] == null) {
  20.          System.err.println(this.val$baseClass.getName() + "/" + this.val$gifFile + " not found.");
  21.          return null;
  22.       } else if (var2[0].length == 0) {
  23.          System.err.println("warning: " + this.val$gifFile + " is zero-length");
  24.          return null;
  25.       } else {
  26.          return new IconUIResource(new ImageIcon(var2[0]));
  27.       }
  28.    }
  29.  
  30.    // $FF: synthetic method
  31.    static String access$000(LookAndFeel$1 var0) {
  32.       return var0.val$gifFile;
  33.    }
  34.  
  35.    // $FF: synthetic method
  36.    static Class access$100(LookAndFeel$1 var0) {
  37.       return var0.val$baseClass;
  38.    }
  39. }
  40.