protected String getClipboardContent() throws IOException, UnsupportedFlavorException { try { return (String) myClipboard.getData(DataFlavor.stringFlavor); } catch (Exception e) { LOG.info(e); return null; } }
protected void setCopyContents(StringSelection selection) { myClipboard.setContents(selection, this); }