First Comes Data Transfer

The Data Transfer API is used to develop JFC programs that cut objects to and paste objects from either the system clipboard or a private clipboard. Although almost any kind of object can be cut and pasted (in theory), this API is typically used to cut and paste text strings. As a result, special support for cutting and pasting strings is provided.

The Data Transfer API is located in the java.awt.datatransfer package, which contains three interfaces and six classes—described in Table 19.1.

Table 19.1. Data Transfer Classes and Interfaces
Interface/Class Description
Clipboard This class implements a mechanism for transferring data by way of copy/cut/paste operations.
ClipboardOwner This interface is used by classes whose ...

Get Special Edition Using Java 2 Standard Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.