/** * sets the current textual content of the system clipboard to the given text * * @param text text */ public static void setClipboard(String text) { try { Clipboard.putText(Clipboard.PLAIN, Clipboard.UTF8, Clipboard.CHAR_BUFFER, text); } catch (Exception ex) { Debug.error("Env.setClipboard: %s", ex.getMessage()); } }