Creating a Bean

Creation of a bean in the IDE begins with a Java class that has source code. A Bean Patterns subnode appears in the Explorer for any such class.

Create a new class to be used as a bean by clicking File New. You can choose from many templates, such as the Bean template (which provides some skeleton code for a non-visual bean) and the Swing JPanel (which is commonly used for visual beans).

You can maintain or modify and sets for the class from the Bean Patterns subnode. These property and event sets define features of a bean, all of which can be visually manipulated in the IDE or any other JavaBeans-enabled building tool.

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 http://java.sun.com/beans/.

Follow these links for help on developing beans using the Bean Patterns subnode of a class in the Explorer:

Creating a Bean Property

Creating a Bean Event Set

Deleting a Property or Event Set

Generating BeanInfo

Legal Notices