Troubleshooting

Bean Properties Are Not Detected

The set of Bean properties reported by an application builder is incomplete.

Unless you're using a BeanInfo class or a Customizer, application builders and similar tools determine a Bean's properties based on method name patterns. For example, defining an integer field named fontSize in a Bean class isn't sufficient to have it recognized as a property. You need to declare appropriate setter and getter methods with the following sig natures:

public void setFontSize( int value )
public int getFontSize()

Bean Events Are Not Propagated

Changes in the bound properties of a Bean are not reflected in a dependent Bean.

The key to responding to property changes in a Bean is to implement the PropertyChangeListener ...

Get Special Edition Using Java 2 Standard Edition 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.