O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required