public class ClipboardUtil
extends java.lang.Object
ClipboardUtil provides utility methods for the Java Clipboard API.| Constructor and Description |
|---|
ClipboardUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.datatransfer.Clipboard |
getClipboard()
Returns the ClipboardService instance.
|
static void |
setClipboard(java.awt.datatransfer.Clipboard instance)
Sets the Clipboard singleton used by the JHotDraw framework.
|
public static java.awt.datatransfer.Clipboard getClipboard()
public static void setClipboard(java.awt.datatransfer.Clipboard instance)
If you set this null, the next call to getClipboard will create a new singleton.