How to create splash screen as a Preloader in JavaFX standalone application?

前端 未结 3 663
说谎
说谎 2021-01-11 17:33

I created a Preloader (based on the following tutorial) that should display a splash screen for the main application.

9.3.4 Using a Preloader to Display the Applicat

3条回答
  •  北海茫月
    2021-01-11 17:55

    The IDEs aren't great at adding preloaders yet. Take a look at the Manifest in your program's jar file and make sure this line is present:

    JavaFX-Preloader-Class: SplashScreenLoader
    

提交回复
热议问题