The IDE provides many templates that help you create JavaBeans components.
The templates provide skeleton code for a non-visual beans.
You can also create visual beans using the JFC/Swing
template.
To create a JavaBeans component:
Choose File > New File.
In the New File wizard, select the JavaBeans Objects node in the Categories
pane.
Select the JavaBeans Component in the File Types pane and click Next.
Enter the desired file name for the Bean and designate the location where
you want to place it. Click Finish.
Notes:
You can modify
and
sets for the class from the Bean Patterns subnode. These property and event
sets define features of a bean.
You can also use the Bean Patterns subnode to set property and event mechanisms
in standard classes that are not written to the JavaBeans architecture. These
property and event mechanisms are not recognized when you use introspection.
For information about the JavaBeans component architecture, including how
introspection works, see the JavaBeans web site at