Convert to JavaFX