Delete JavaFX part