title: Detect window inactivity in Java
body: <p>How do I detect inactivity in a window (including it's dialog boxes) and then use a javax.swing.Timer to measure for X amount of time the window has been inactive and then println a message ?</p>