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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment