Migrating to JavaFX