|
Copying data to system clipboard |
|
|
The following static method copies the data it gets into the system clipboard:
// This method writes a string to the system clipboard.
public static void copyToSystemClipboard(String str) {
StringSelection ss = new StringSelection(str);
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.