Add JavaFX support.