1 Replies - 3521 Views - Last Post: 20 September 2005 - 05:23 AM Rate Topic: -----

#1 it_senthilkumar  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 04-April 05

how to track the idle time

Posted 20 September 2005 - 12:41 AM

If the system is idle (status of the mosue or keyboard doesn't change) for 10 minutes,
I need to log off the java application. How to track the idle time in linux using java?
Is This A Good Question/Topic? 1

Replies To: how to track the idle time

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: how to track the idle time

Posted 20 September 2005 - 05:23 AM

Hmmm...we had this question recently....I'm not aware of any native java code to track the idle time, but you can use either third party software that java can poll, or something like the JDIC project...it provides a great deal of system info.

C# and managed C++ actually have a class for this sort of thing, but I'm not aware of any in native java.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1