Java clipboard owner purpose?
•
Java
I wrote a Java application that copies strings to the system clipboard Constructor use
Clipboard.setContents(Transferable contents,ClipboardOwner owner)
http://docs.oracle.com/javase/6/docs/api/java/awt/datatransfer/Clipboard.html
My work is normal, but I'm not sure what clipboard owner does? Look, the Java API doesn't really tell much
http://docs.oracle.com/javase/6/docs/api/java/awt/datatransfer/ClipboardOwner.html
Oddly enough, even passing clippboardowner = null is OK So I'm not sure what the point is? Does anyone have an idea?
Solution
If your application or one of its components implements the clipboard owner interface in an appropriate way, it can show you that users copy some data from another application or another component of your own application to the system clipboard
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码