Is there a way to perform a "timeout" on an application in Java? I would like to log a user out if the application has not detected any traffic in (n) minutes.
If you're using sockets, you can put a timeout on the socket when it goes to read. Ouside of that, you can always use/create a timer object. What type of application do you have?
My app is an Application! It is accesed via the main method to an MDI style JFrame. Are you suggesting I could use the Timer object on the MDI Frame? Does this Frame detect activity being performed within one of its JInternalFrames? How could this work?
Anderson gave himself the promotion. So I gave myself this tiny ad: