Occasionally, you might need to copy and paste a data type that isn’t one of the data types supported by the system clipboard and that isn’t serializable. To transfer an arbitrary Java object reference within the same JVM, use the MIME type
You need to define a
Transferable wrapper for this type. The process is entirely analogous to the
SerialTransferable wrapper of the preceding example.
An object reference is only meaningful within a single virtual machine. For that reason, you cannot copy the shape object to the system clipboard. Instead, use a local clipboard:
Clipboard clipboard = new Clipboard("local");
The construction parameter ...