O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Table 20-1. java.awt.datatransfer Classes and Interfaces
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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required