I wrote a Java application that copies a string to the system clipboard. The constructor uses
Clipboard.setContents(Transferable contents, ClipboardOwner owner)
http://docs.oracle.com/javase/6/docs/api/java/awt/datatransfer/Clipboard.html
I got it working fine but I am not sure what the ClipboardOwner does? Looking at the Java api does not really tell much info.
http://docs.oracle.com/javase/6/docs/api/java/awt/datatransfer/ClipboardOwner.html
Oddly enough even passing a ClippboardOwner = null works. So I’m not exactly sure what the point of it is? Does anyone have any idea?
If your application, or one of it’s components implements
ClipboardOwnerinterface in appropriate way, it can show you that the user copied some data to the system clipboard from another application, or from another component of your own application.See this example.