wood burning stoves 2.0*
The moose likes JavaFX and the fly likes JavaFX equivalent of thread.join? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX equivalent of thread.join?" Watch "JavaFX equivalent of thread.join?" New topic
Author

JavaFX equivalent of thread.join?

L Purcell
Greenhorn

Joined: Feb 19, 2012
Posts: 12
I need to wait a limited amount of time for a Service/Task to complete before declaring it unsuccessful and cancelling it (essentially a timeout).
I'm new to FX (and Java, really), though I have gotten a Service and Task to work as well as .setOnSucceeded, etc. I can't figure out, though, how to limit the time for the Service/Task to run.
In Java the thread.join() method would seem to do it, but in FX I don't seem to have direct access to the thread(?). Help? Thanks! L
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX equivalent of thread.join?
 
Similar Threads
redraw canvas when scene is resized
JavaFX, Scene Builder, and basic issues with threads/tasks
Making a Execution of a tasks take only constant Number of seconds
* Welcome Stephen Chin & Dean Iverson
Does your book cover JavaFX and FX script?