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. ...

Get Graphic Java™ 1.2, Volume I: AWT, Third 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.