Applications often have the requirement of running a thread asynchronously so that the Event Dispatch Thread (EDT) remains responsive while, for example, accessing a remote resource. Some JavaFX applications have used SwingWorker for this purpose, but that is not a portable solution (it requires Java Swing which is not generally available on mobile devices, for example).
James Clarke of the JavaFX compiler team has written an informative blog post about the recommended way of doing asynchronous operations in JavaFX.
Sorry for the lame Police reference in the title of this article :-)
Regards,
Jim Weaver
JavaFXpert.com
Comments