Targeting desktop applications -- and also Mobile devices -- JavaFX is one of the newest undertakings by Sun Microsystems encompassing Java technology. William Brogden writes:
The JavaFX scripting language is intended to make it easier to use the Java "swing" user interface library to create rich user interfaces that will run anywhere the Java standard edition is supported.
The event processing problem: JFX shares this problem with every graphical user interface toolkit. User events such as clicking a button must not tie up the event processing thread with long running tasks because the interface will be unresponsive while the task is running. JFX provides the "do" and "do later" constructs to handle this problem
Read the full entry : http://searchwebservices.techtarget.com/tip/0,289483,sid26_gci1263718,00.html