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