Controlling The Splash Screen From Your Application


  If you have enabled a splash screen for a launcher, you will want to hide it once the application startup is finished. The splash will be hidden automatically as soon as your application opens the first window.

However, you might want to hide the splash screen programmatically or update the contents of the status text line on the splash screen during the startup phase to provide more extensive feedback to your users.

  With the install4j launcher client API you can
  • Hide the splash screen programatically
    Invoke the static method com.install4j.api.launcher.SplashScreen.hide() as soon as you wish to hide the splash screen.
  • Update the status text line
    Invoke the static method com.install4j.api.launcher.SplashScreen.writeMessage(String message) to change the text in the status line.
install4j's launcher client API is automatically available to an application deployed with install4j. For compiling your application, you need to add i4jruntime.jar to the classpath. i4jruntime.jar can be found in the resource directory of your install4j installation.