Java Tips Weblog

  • Blog Stats

    • 2,571,634 hits
  • Categories

  • Archives

Search Results

Application Inactivity

Posted on October 24, 2008

There are times when you may want to monitor your application for inactivity. Maybe you want to log out a user after a certain time interval. This requirement can be broken down into two main steps. We will need to: Whenever the time interval between events exceeds our inactivity threshhold we will then invoke the […]

Read the rest of this post...

Posted in Classes, Swing | 15 Comments »

Global Event Listeners

Posted on August 30, 2009

Listeners are used to listen for specific events on a given component. This makes it easy to listen for a MouseEvent on a text component for example. With this approach you need to add a separate listener to the component for every event you want to listen for. However there may be times when you […]

Read the rest of this post...

Posted in Awt, Swing, Tips | 13 Comments »