copy a string to the system clipboard @param s string
(String s)
| 172 | * @param s string |
| 173 | */ |
| 174 | private static void setClipboard(String s) { |
| 175 | Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(s), null); |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * read contents of system clipboard |