What is the difference between a JavaBean and a traditional AWT object?

John Zukowski

JavaBeans is a component architecture for defining reusable components for Java. The JavaBeans specification defines just how to create/define such components. These components may be graphical or may not be. There is no requirement that a bean be graphical, just that it follows the architecture defined by the specification.

On the other hand, an AWT object, specifically the AWT components, are JavaBean components specifically designed to be reused by a drag-and-drop GUI development tool like VisualAge for Java or JBuilder. While yes, you can code everything by hand, because the AWT components are JavaBean components, you can get/set bean properties, connect events, and persist the interface, through the JavaBeans architecture.