public interface ClipboardService
ClipboardServiceprovides methods for accessing the shared system-wide clipboard, even for applications that are running in the untrusted execution environment. Implementors should warn the user of the potential security risk of letting an untrusted application have access to potentially confidential information stored in the clipboard, or overwriting the contents of the clipboard.
|Modifier and Type||Method and Description|
Sets the current contents of the clipboard to the specified
Transferableobject representing the current contents of the clipboard. If the clipboard currently has no contents, it returns null.
Transferableobject on the clipboard.
void setContents(java.awt.datatransfer.Transferable contents)
Transferableobject representing clipboard content.
Copyright © 1998, 2018, Oracle and/or its affiliates. All rights reserved.