Applying JavaFX to project