Added JavaFX sample code