wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Need to handle the user opening a different application or opening a new tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

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

Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 135
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

Joined: Jan 10, 2002
Posts: 60822
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to handle the user opening a different application or opening a new tab
 
Similar Threads
VirtualMachine.attach and LoadAgent under JavaFX?
Insider's Guide to Mixing Swing and JavaFX
Java Applet and MySQL on Web Site
How to stop a thread when the user moves away from the JavaFX applet
With JavaFX can develop both web and desktop Apps