Java to JavaFX