The java.awt.datatransfer Package
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 |
UnsupportedFlavorException ... |
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.