Adding listener to non-Java object?
Ellow all :)
Wanna ask, im trying to make a tracker program that collects data about how many time an icon, folder(directory) or file in my computer had been accessed today, and if it has been clicked or accessed more than n times today, the program would send a response by redirecting the folder destination to another explicit destination folder that i have provided
The only idea i get is to add listener to the file or folders, to get what actions have been done to the object, and then submit it to my program which will then give orders on what to do if a certain conditions are meet
What im not sure, whether is there any way to add listener to objects not created using Java, like folders or files or window-frames in Windows?
So far all i know is adding listener to objects created as Java Component
For file, im not familiar with the File class so i haven't tried it, but just a thought, the idea is to derived the File class and implements a listener to it's subclass so that it'll listen to the real file situation, but i just wonder, will it listen in real-time execution?
So far from my knowledge, File class are able to get File data, but mouse clicks and accessed report im not sure
Anyone can help?