For me, i used.
JavaFX service and task to create splash screen as a Preloader in, javaFX standalone application.
Splash Screen code walk through.
Splash, screens are needed for applications we develop in, javafx to show the user about the progress of any background processes that needs to be completed before the GUI can come up completely.
Splash screens are great to engage users when the program takes some time to start. We will learn about how to create a splash screen.
Example 9-16 Implement the SharedScene Interface public class SharedStageApp extends Application implements aredScene private Parent parentNode; private Rectangle rect; public Parent getParentNode return parentNode; public void init /prepare application scene rect new Rectangle(0, 0, 40, 40 tArcHeight(10 tArcWidth(10 tFill(Color. Hide In Example 9-11, note that the same progress bar is used to display the progress of both the application initialization and loading. Another option is to show a simplified version of the preloader and add a progress indicator after the first progress notification is received. Figure 4-1 and described in the following paragraphs. If the application runs standalone or is loaded from the web cache, then the preloader does not get any progress notifications because there is nothing to load, and the application will likely start quickly.