Working with JavaBeans

As you work with JavaBeans in a development environment such as the BDK, you'll quickly discover how different they are from Java classes that weren't designed to be beans.

JavaBeans differ from other classes in a fairly major way: They can interact with a development environment, running inside it as if a user were running them. The development environment also can interact directly with the JavaBean, calling its methods and setting up values for its variables.

If you have installed the BDK, you can use it in the following sections to work with existing JavaBeans and create a new one. If not, you'll still learn more about how JavaBeans are used in conjunction with a development environment.

Bean Containers

The AWT (Abstract ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.