I would like to implement session timeout kind of thing for a JFrame. My Swing application has login authentication but no invalidation after certain period of inactivity. I have one way (idea) of doing it, like checking timestamps of last two successive events (key or mouse). I think there has to be an elegant way of achieving this.
Is there any other way of doing this?
Thats reasonable. Application Inactivity shows an easy way to globally listen for these events.