Is there a way for a Java application to detect if the screen is locked?
<p>I'm looking for a way to know in a Java application (<em>without</em> JNI - it's a multi-platform application) can detect if the screen is locked.</p>

<p>For information... our application records time while a user is working - we want it to automatically stop recording when the screen is locked instead of the user having to do so explicitly.</p>
