Demo from oracle Java documention. Now just JavaFX