src/macosx/classes/sun/lwawt/macosx/CClipboard.java

Print this page

        

@@ -114,10 +114,14 @@
     //protected Transferable createLocaleTransferable(long[] formats) throws IOException;
 
     private native void declareTypes(long[] formats, SunClipboard newOwner);
     private native void setData(byte[] data, long format);
 
+    public void checkLostOwnership() {
+        checkPasteboard();
+    }
+
     /**
      * Invokes native check whether a change count on the general pasteboard is different
      * than when we set it. The different count value means the current owner lost
      * pasteboard ownership and someone else put data on the clipboard.
      * @since 1.7