Previous |
TileBeanInfo.java
TileBeanInfo extends SimpleBeanInfo to specify an icon to be used to represent a Tiles bean.
Extend SimpleBeanInfo | public class TilesBeanInfo extends SimpleBeanInfo { |
Specify the icon type and name | public Image getIcon(int iconKind) { if (iconKind == BeanInfo.ICON_COLOR_16x16) { Image img = loadImage("images/tiles.gif"); return img; } return null; } } |
Classes for Tiles sample:
Previous | Next |
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.