Hi all I want to write a simple program (just for learning purposes) that monitors the system clipboard data and serializes its contents.
For example, whenever the user copies some data into the system clipboard (Ctrl-C etc), my program should receive a "notification" and serialize the clipboard data into a file.
I've looked into java.awt.datatransfer but there doesn't seem to be any way I could hook a callback onto the system event whenever data is copied to the clipboard.
How do we get notified about system clipboard events?
It's ok if the solution works only for windows, but OS inter-operability is a plus of course.