Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

Need to handle the user opening a different application or opening a new tab

 
Mathew Kuruvilla
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Report post to moderator
Scenario: (Cross Posted to the JavaFX Thread also)
A JavaFX applet is loaded and running a thread which populates various UI elements
every 3 seconds Suddenly the user who is viewing the applet decides to open his outlook email
or some other application. At this time, the applet would still be running and updating the UI elements.

I would like to stop the thread. For this, I guess, I need to call some Javascript
function when the user moves out of the tab where the JavaFX applet is currently loaded.
How can I do this?
Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65113
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
    Bookmark Topic Watch Topic
  • New Topic