general input timeout
One idea for implementing a general input timeout, both for keyboard and mouse-click onany component on the app window(s), is to run an alert/shutdown timer as a separate thread. The timer should be reset and restart from zero at any input on the components. However, for this scheme to work, I'm afraid we should add a specific mouse listener and a key listener onto every component on the app. What could be a better and simpler design for the control of that kind of timer?
Thanks in advance.

