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

Customization

You change a bean's properties through customization. There are two ways to customize a bean—through property editors and through direct calls to mutator methods.

Property Editors

Earlier in this chapter you learned that a bean's properties are exposed through introspection and are listed in a property sheet along with property editors. You change a bean's property through its property editor. There are many different types of property editors. One of the simplest is the text box where you delete the old value and type in a new one. For example, the default value of OurButton bean's label property is press. You can delete press and type Start Animation into the label text box to change the label property (see Figure 4.4). The result ...

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