Trail: JavaBeans(TM)

JavaBeans™ is a portable, platform-independent component model written in the Java programming language. The JavaBeans architecture was built through a collaborative industry effort and enables developers to write reusable components in the Java programming language.

With the JavaBeans API you can create reuseable, platform-independent components. Using JavaBeans-compliant application builder tools, you can combine these components into applets, applications, or composite components.

JavaBean components are known as beans. Beans are dynamic in that they can be changed or customized. Through the design mode of a builder tool, you use the property sheet or bean customizer to customize the bean and then save (persist) your customized beans.

This trail is represented in the following lessons:

Trail icon JavaBeans Concepts describes the basic notion of JavaBeans and what makes a bean.

Trail icon Using the NetBeans GUI Builder describes the NetBeans GUI Builder within the scope of operating with bean objects.

Trail icon Writing a Simple Bean walks you through creating a rudimentary bean, saving the bean, adding the bean to the Palette of the NetBeans GUI Builder and inspecting the bean's properties and events.

Trail icon Bean Properties explains how to give your beans properties: bean appearance and behavior characteristics that are customizable at design time.

Trail icon Manipulating Events describes the JavaBeans event manipulating capabilities. If you are not familiar with event handling, you might want to read up on Writing Event Listeners to prepare for this material.

Trail icon Bean Persistence explains how to save and restore beans to their customized state.

Trail icon Long Term Persistence explains how to save and load your beans in the XML format using the XMLDecoder and XMLEncoder classes.

Trail icon Introspection describes how methods, properties, and events are discovered in the beans that you write.

Trail icon Bean Customization introduces you to property editors, and the Customizer interface.

Trail icon Using the BeanContext API covers The Extensible Runtime Containment and Services Protocol, also known as beancontext.


Problems with the examples? Try Compiling and Running the Examples: FAQs.
Complaints? Compliments? Suggestions? Give us your feedback.

Previous page: Beginning of Tutorial
Next page: JavaBeans Concepts