JavaFX is single threaded similar to Swing and you can only update JavaFX objects
on the main JavaFX thread. In the JavaFX language there is no support for creating
threads or doing synchronization semantics.
Usually, the only reason you have to get on to the main JavaFX thread is you
have java code that is running in its own thread and you need to communicate
back to the JavaFX environment.
From java, there is a class:
If you want to do something like the Swing invokeLater call from JavaFX,
there is a function in javafx.lang.FX called deferAction. It works like this:
;
If you want to do an asynchronous task you need to use the javafx.async classes. I have done a write up
on this at my blog:
http://blogs.sun.com/clarkeman/