This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello Everyone, I have this really cool idea (I think) for a screensaver program. Of course I can't write it in Java since the screensaver is run by the operating system. I really want to keep the platform independence (and avoid writing native code in C++ (shudder) ). So what I want to know is, is there anyway that I can make a java program ACT like a screensaver. Specifically when it is run it sits in the background listening to keystrokes or mouse activity (even within another program) . If after a certain time there isn't any such activity then it does something until that activity occurs. I don't think there is anyway to listen for ALL such activity (since in java one adds these listeners to a specific component) since I would need the Java program to figure out that there is no such activity going on even in any other programs. But I thought I would see if anyone has any workarounds ... Dan
Dan, To me this almost seems impossible to do since like you said, events have to be registered with Java components. Still, I think nothing is impossible. If you do figure this one out, I would really like to know how to do it also. firstname.lastname@example.org