Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Custom Preloader
Custom Preloader [message #1341224] Thu, 08 May 2014 11:34 Go to next message
Mike Richardson is currently offline Mike RichardsonFriend
Messages: 2
Registered: May 2014
Junior Member
Hi

I have figured how to write a custom Preloader class, for displaying an animated Splash Screen for our application. What I haven't been able to figure out, is how to install the preloader, or at least tell the JavaFX application that it should use mine instead of the default one.

I have seen documentation on how to do this using JNLP and NetBeans but not Eclipse.

Anyone know how to do this?
Re: Custom Preloader [message #1341452 is a reply to message #1341224] Thu, 08 May 2014 13:41 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

You are talking about the exported application right? You want to export
a WebStart application? In the fxbuild-File you can set the preloader to
be used!

Tom

On 08.05.14 15:32, Mike Richardson wrote:
> Hi
>
> I have figured how to write a custom Preloader class, for displaying an
> animated Splash Screen for our application. What I haven't been able to
> figure out, is how to install the preloader, or at least tell the JavaFX
> application that it should use mine instead of the default one.
>
> I have seen documentation on how to do this using JNLP and NetBeans but
> not Eclipse.
>
> Anyone know how to do this?
Re: Custom Preloader [message #1341471 is a reply to message #1341452] Thu, 08 May 2014 13:51 Go to previous message
Mike Richardson is currently offline Mike RichardsonFriend
Messages: 2
Registered: May 2014
Junior Member
No i meant to launch the app from Eclipse.

Someone here told me that you need to add this VM argument

-Djavafx.preloader=PreLoader


I also discovered you can call launchApplication directly from main() and pass in the preloader

LauncherImpl.launchApplication(MainApp.class, PreLoader.class, args);

rgds
Mike
Previous Topic:Breaking change with next nightly build - PopupMenuService got removed
Next Topic:DS services problem
Goto Forum:
  


Current Time: Fri Apr 26 07:41:22 GMT 2024

Powered by FUDForum. Page generated in 0.03862 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top