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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaFX equivalent of thread.join?