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