Displaying a Bean Icon

You can add support for displaying tool palette icons to your bean. When you do, application builders can display an icon to represent your bean. The way an icon is displayed, its resolution, or even if an icon is displayed at all, is up to the application builder itself. You can provide the icons for those builders that use them. For example, your bean's icon can show up in the icon palette in Symantec's Visual Café tool or in the BeanBox.

You will now add 16×16 pixel and 32×32 pixel color icon support to the PictureButton bean from Chapter 7, "Beans as Graphical User Interface Components," Listing 7.4. The icons are held in the PictureButtonIcon16.gif and PictureButtonIcon32.gif files provided in the JavaBeans Unleashed ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.