예제 #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);
 }