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

Summary

The AWT includes support for clipboards, both local clipboards and access to the system clipboard. Copying data to the system clipboard makes the data available to other programs in addition to other AWT components.

The AWT's data transfer mechanism consists of transferables and data flavors. Transferables encapsulate data and can may provide access to their data in one or more data flavors.

Transferring textual data is supported by the java.awt.datatransfer package; however, you are on your own when transferring data of other types. To illustrate transferring nontextual data types, we've demonstrated how to transfer both images and AWT custom components to and from clipboards, in order to illustrate transferring nontextual data types. ...

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