views:

106

answers:

1

how can I add a listener to the computer's processor? I want the mouse cursor to change when the processing is hight.

+3  A: 

You are going to have to drop to native code to get the CPU info. Here is an article on doing that.

You would have to write a class that then makes use of that native call and provides the API you want for the listener.

Edit:

Hmmm... you might also check out http://support.hyperic.com/display/SIGAR/Home.

TofuBeer
native code asking the underlying operating system...
Thorbjørn Ravn Andersen
I expect something as easy as the OutOfMemory warning system - http://www.javaspecialists.eu/archive/Issue092.html
Tom Brito
thanks for the update! I would like they introduce that in the JDK, by the way.
Tom Brito