Lapskaus IT
A computer blog as colorful as Lapskaus ingredients ...
Monday, May 02, 2016
copy a text to clipboard in Java
Easily done via Java
Toolkit
StringSelection selection = new StringSelection(theString);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(selection, selection);
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment