2 Replies Latest reply: Mar 4, 2013 2:14 PM by jsmith RSS

    How to use Preloader with stand-alone application in Eclipse? Thank you.

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

      How to use Preloader thus the preloader would be started before my main Application and hid later?

      I found some code in http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABGGDJG

      but I still don't know how to deploy the Preloader with my startup Application in OSGI framework.
      I give some code of my startup application below:
      public class MyPrjMain extends Application
      {
          private static Stage primaryStage;
           
           public void start(final Stage stage)
              throws BusinessException
          {
              primaryStage = stage;
              
              init(primaryStage);
              
              primaryStage.show();
          }
      }
      Thanks very much, everybody.

      Edited by: Slash Wang on 2013-2-27 下午5:36