O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Components and Serialization

AWT components provide built-in support for serialization. Actually, a more accurate statement is that the Java language provides support for serialization, and AWT components take advantage of that support. The AWT adds additional support for serializing event listeners associated with its components.

We won't discuss Java's support for serialization—that is beyond the scope of this book—however, we will discuss serializing AWT components because the AWT affords you the option of serializing a component's listeners along with the component itself.

Figure 11-4 shows an application initially containing a lone button. When the button is activated, the button's listener serializes the button and writes it to a file. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required