Creating a Bean Component

Using JavaBeans, you can create and combine reusable software building blocks. A JavaBeans component built once can be integrated without further code changes using any tool that conforms to the JavaBeans architecture.

You can create multiple beans in a beans project.

To add a bean:

  1. Type the name of the bean in the Bean Name box.
    The name of the bean can be one of the following:
  2. Decide if you want the bean to have an accompanying BeanInfo file and/or a Customizer file, and select the appropriate checkbox(es).
    You can select both the BeanInfo check box and Customizer check box, or just one, depending on your component plan.
  3. Click Create New Java Bean.
    Java WorkShop automatically adds the .java suffix to each bean file name, and adds the file to the Java Files list.
  4. Decide if you want to add another bean to this project.

    Java WorkShop creates source templates for each non-existing file in the New Bean Card list. The source editor shows the source code for the project's first file. And, the project is added to the project manager.