Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I have my JavaBean display a custom icon when it is imported into a bean builder tool?

0
Posted

How do I have my JavaBean display a custom icon when it is imported into a bean builder tool?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123