The easiest way to make the Clipboard contain a string is:
done_
public void setClipboard(String text) { Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard(); StringSelection selection = new StringSelection(text); c.setContents(selection, selection); }
done_