ik weet welke dingen ik moet gebruiken om het windows clipboard te kunnen gebruiken, maar ik snap iets niet.
Dit staat in API, en hiermee kan je iets op het clipboard zetten.
Wat ik niet snap is wat ik moet invullen voor die "Clipboard Owner". Kan ik trouwens voor "Transferable contents" gewoon een String invullen?
thnx!
code:
1
2
3
4
5
6
| public void setContents(Transferable contents,
ClipboardOwner owner)
Sets the current contents of the clipboard to the specified transferable object and registers the specified clipboard owner as the owner of the new contents. If there is an existing owner registered, that owner is notified that it no longer holds ownership of the clipboard contents.
Parameters:
content - the transferable object representing the clipboard content
owner - the object which owns the clipboard content |
Dit staat in API, en hiermee kan je iets op het clipboard zetten.
Wat ik niet snap is wat ik moet invullen voor die "Clipboard Owner". Kan ik trouwens voor "Transferable contents" gewoon een String invullen?
thnx!