File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?