This video explains how to make a splash screen in JavaFX. Rather than using Threads, I have used JavaFX FadeTransition for Fade-in and Fade-out effect.

Read more about JavaFX Splash Screens:

The transition has 3 parts. In the first part, Splash screen content is loaded with Fade-in transition. At the end of Fade-in, fade out transition is initiated. At the end of Fade-out transition, actual program screen is loaded to the same scene.

– Genuine Coder