Controlling the splash screen from your application

   


  If you have enabled a splash screen for your exe4j executable, you usually want to hide it once the application startup is finished. With exe4j's auto-off mode enabled, 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 exe4j launcher API you can
  • Hide the splash screen programatically
    Invoke the static method com.exe4j.Controller.hide() as soon as you wish to hide the splash screen.
  • Update the status text line
    Invoke the static method com.exe4j.Controller.writeMessage(String message) to change the text in the status line.

The launcher API of exe4j is contained in exe4jlib.jar which can be found in the top level directory of your exe4j installation.

Note: you do not have to add it to the classpath of your application and distribute it along with it, since that file is always contained in the executable.