Use a customizer to change properties

If a component has a customizer defined for it in its BeanInfo class, a user can use the customizer to update the properties of the component.

Defined in the JavaBeans specification, a customizer is an AWT or Swing component that is able to provide a more rich interface for users to change a Java bean property. Whether a Java bean has a customizer is determined by its BeanInfo class.

If a component has a customizer available, the Customize Java Bean toolbar button

customize bean is enabled.

To use a customizer to change the properties of a component:

  1. Select the component in either the Design view or the Java Beans view.

  2. Click the Customize Java Bean toolbar button

    customize bean. If the button is disabled, the component does not have a customizer defined for it in the BeanInfo class. A modal customizer dialog opens. Because the customizer opens in the JVM that runs the Java beans on some platforms, it may not show up in front of the workbench and you may need to select it on the task bar to make it visible. If the customizer class is an AWT or Swing component, it will be shown inside a dialog with the OK and Cancel buttons.

    area customizer

  3. Use the customizer to make changes to the property. As you use the customizer, it updates the live Java bean.

  4. Click OK to confirm the changes, or click Cancel to discard the changes and restore the Java bean to its previous state.

 

Parent topic

Extending the visual editor for Java