How do I have my JavaBean display a custom icon when it is imported into a bean builder tool?
Location: http://www.jguru.com/faq/view.jsp?EID=15883 Created: Feb 18, 2000 Modified: 2000-03-16 22:40:43.198 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) You need to create a custom BeanInfo class for your bean with a public Image getIcon(int kind) method to return the necessary icon. Predefined types are BeanInfo.ICON_MONO_16x16, BeanInfo.ICON_MONO_32x32, BeanInfo.ICON_COLOR_16x16, or BeanInfo.ICON_COLOR_32x32.