| Bean1BeanInfo.java |
/**
* Bean1BeanInfo.java
*
* Description: BeanInfo for class Bean1
* @author
* @version
*/
package bean;
/**
* Bean1BeanInfo just gives the Bean1 bean its icons.
*
* @see Bean1
*/
public class Bean1BeanInfo extends java.beans.SimpleBeanInfo {
/* Small icon is in Bean1.gif
* Large icon is in Bean1L.gif
* [It is expected that the contents of the icon files will be changed to suit your bean.]
*/
public java.awt.Image getIcon(int iconKind) {
java.awt.Image icon = null;
switch (iconKind) {
case ICON_COLOR_16x16:
icon = loadImage("Bean1.gif");
break;
case ICON_COLOR_32x32:
icon = loadImage("Bean1L.gif");
break;
default:
break;
}
return icon;
}
}
/* @(#)Bean1BeanInfo.java */