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