• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to check idle status and calculate the time of a GUI window  RSS feed

 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am wondering if there is a good way to do this: if user do not click buttons or other components on a Swing GUI for a fixed period like 2 minutes, then give a warning. In other words, how to monitor the GUI, if its component is not active for some time, then give a warning. The GUI has a few panel and buttons.

Thanks.
 
Steffen Schmitt
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered using a javax.swing.Timer for the timing and resetting the timer using the gui's event-listening methods?

Cheers,

Steffen
 
Rob Camick
Ranch Hand
Posts: 2787
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application Inactivity
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!