home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 February / PCpro_2005_02.ISO / files / opensource / Opcion_1.1.1 / Opcion_v1.1.1.exe / FontViewer / resources / MyImageIcon.class (.txt) next >
Encoding:
Java Class File  |  2004-04-25  |  1.1 KB  |  22 lines

  1. package FontViewer.resources;
  2.  
  3. import java.awt.Image;
  4. import javax.swing.ImageIcon;
  5.  
  6. public class MyImageIcon extends ImageIcon {
  7.    // $FF: renamed from: ic javax.swing.ImageIcon
  8.    private ImageIcon field_0;
  9.  
  10.    public MyImageIcon(String imageName) {
  11.       this.field_0 = new ImageIcon(this.getClass().getClassLoader().getResource("FontViewer/resources/icons/" + imageName));
  12.    }
  13.  
  14.    public ImageIcon getImageIcon() {
  15.       return this.field_0;
  16.    }
  17.  
  18.    public Image getImage() {
  19.       return this.field_0.getImage();
  20.    }
  21. }
  22.