Many types of JavaBeans exist and each has a different creation method.
Uni Bean
A Uni Bean is a Bean that is made up of a single component such as a text field or a button. An existing Uni Bean is created as a new Uni Bean by being extended and given an additional function.
Compound Bean
A Compound Bean is a Bean that is made up of a number of Beans. A Compound Bean is created by using the Java Form Designer to paste Beans on a panel (JPanel or Panel), in the manner of creating the layout of a form.
Invisible Bean
If a class that has no view has been specified in a superclass, an Invisible Bean will result. As an Invisible Bean has no view, it is edited using the Java editor in the same way as an ordinary Java source.
Select [Java] > [GUI] > [JavaBeans] from the New Wizard and then use the Wizard to create a Uni Bean or an Invisible Bean.
The settings in the Wizard include the following:
Package name
Specify the package name of the source to be generated.
Bean name
Specify the class name of the Bean.
Generate Beaninfo
This automatically creates BeanInfo information. The properties, methods, and events of the parent of an extending class are included as default BeanInfo information. If you do not select this option, the wizard will create empty BeanInfo information.
Config
Specify the rectangle, font, foreground color, and background color of the Bean.
Extended class details
Specify the base class.
After creating a form (panel), perform BeanInfo definition by selecting [Edit] > [Define BeanInfo] > [BeanInfo Definition] from the workbench menu bar, in order to create a Compound Bean. Refer to "7.3.8 Defining BeanInfo" for details on BeanInfo definition.
Item | Description |
---|---|
Source Folder | Select the source folder to store the Bean source. |
Package | Enter the package name if the package name of the class to be generated is to be specified. |