posted 11 years ago
Hi,
I'm trying to get familiar with the system clipboard by building a "clipboard listener" what I want to do is listen to the clipboard and when it changed print the new value that is put into the clipboard[if it is text].
This is what I tried:
Now 2 strange things happen:
1. lostOwnership never runs if I run the code in Mac OS X [it does if I run it in Windows 7].
2. From some reason I get an exception while I'm trying to print what has changed within the clipboard, in lostOwnership.
Please be kind with me=) I'm not professional programmer. [I'm a student]