I found the following idle question: JavaFX 2 User Idle Detection however, I would like to create a global idle detection regardless of scene or stage.
Is there a way to check for idle on the FX Application as a whole, so that I can close it?
For example, I have a task window, which launches secondary stages, so if the user is working on one of those stages, I don't want the idle on the task window to fire.
The only examples I have seen are either scene or stage related.
For example:
MainWindow ->opens Window 1
MainWindow ->opens Window 2
MainWindow and Window 1 are idle while user interacts with Window 2 - idle should not fire.
However MainWindow, Window 1 and Window 2 are ALL idle, then it should.
Thanks!
Thanks!