home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / recenz / PROGRAM / JAVADRAW / iavadraw301_inst.exe / data.z / bcbi.pre < prev    next >
Text File  |  1997-02-08  |  792b  |  36 lines

  1. import java.beans.*;
  2.  
  3. public class \Name\BeanInfo extends SimpleBeanInfo 
  4.    {
  5.  
  6.    public java.awt.Image getIcon(int iconKind) 
  7.       {
  8.       if (iconKind == BeanInfo.ICON_COLOR_16x16) 
  9.          {
  10.          java.awt.Image img = loadImage("\Name\Icon16.gif");
  11.          return img;
  12.          }
  13.       if (iconKind == BeanInfo.ICON_COLOR_32x32) 
  14.          {
  15.          java.awt.Image img = loadImage("\Name\Icon32.gif");
  16.          return img;
  17.          }
  18.       return null;
  19.       }
  20.  
  21.    public PropertyDescriptor[] getPropertyDescriptors()
  22.       {
  23.       try
  24.          {
  25.          return null;
  26.          }
  27.       catch (Exception ex)
  28.          {
  29.          System.err.println("\Name\BeanInfo: unexpected exeption: " + ex);
  30.          return null;
  31.          }
  32.       }
  33.       
  34.    }
  35.  
  36.