This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
We like to implement a timeout in our Java client application (using JDK 1.1.8 and Swing 1.1.1) connecting to servlets on the SilverStream Application server. The application consists of an input screen and depending on the request, an output screen. The user could expand/collapse the trees in the output screen or perform other requests on the input screen. If he is inactive for 20 minutes or more, we like to log him out and end the application after a message. Does anyone know how we could implement this easily using the Swing GUI thread - keeping track for how long it has not performed any action in the user code?? If I have to write a new userInactiveTimer class, I will have to account for all actions on both the screens. I don't know if I am clear enough. Any help/clue greatly appreciated, Thanks, Savithri
Joined: Jun 26, 2000
Help Please!! I could write a timer class and define a method to update the timer. In the ActionPerformed method of each and every button or component on either screen, I could update the timer. Is this the only way out? or, is there a simpler way to do this? Any suggestions appreciated!! Savithri