Data transfer in Java is implemented in a package called
java.awt.datatransfer. Here is an overview of the most important classes and interfaces of that package:
• Objects that can be transferred via a clipboard must implement the
Clipboard class describes a clipboard. Transferable objects are the only items that can be put on or taken off a clipboard. The system clipboard is a concrete example of a
DataFlavor class describes data flavors that can be placed on the clipboard.
StringSelection class is a concrete class that implements the
Transferable interface. It transfers text strings.
• A class must implement the
ClipboardOwner interface if ...