Exercise 10 JavaFXEventdemo. Minor code clean up.