An example JavaFX application as found in Chapter 2 of Pro JavaFX 2: A Definitive Guide to Rich Clients with Java Technology.