How to use javaFX Preloader with stand-alone application in Eclipse?

前端 未结 2 1192
暗喜
暗喜 2020-11-30 05:07

My IDE is eclipse and my project is a stand-alone javaFX application (pure CS architecture with OSGI framework).

How to use Preloader thus the preloader would be sta

2条回答
  •  醉梦人生
    2020-11-30 05:54

    IMHO a Preloader only makes sense when you are running as an applet or webstart because the preloader can be packaged as an extra Jar which is downloaded first and executed while the rest of your application is downloaded in the background.

    So my suggestion would be to open a stage at the first point in time when you get a Stage and e.g. display a splash.

提交回复
热议问题