The clipboard and data transfer mechanism are implemented with a handful of classes and interfaces, all of which reside in the java.awt.datatransfer package. The classes and interfaces from java.awt.datatransfer are listed in Table 20-1.
|Class/Interface||Class or Interface||Purpose|
|Clipboard||Class||Transferables can be copied to and retrieved from the clipboard|
|ClipboardOwner||Interface||An interface for classes that copy data to the clipboard|
|DataFlavor||Class||Data flavors (formats) supported by a transferable|
|StringSelection||Class||A transferable that encapsulates textual data|
|Transferable||Interface||Interface for items that can be placed on the clipboard|