Package com.install4j.api.launcher
Class SplashScreen
- java.lang.Object
-
- com.install4j.api.launcher.SplashScreen
-
public class SplashScreen extends java.lang.ObjectThis class allows you to control the splash screen of an install4j launcher from your Java code.
In order to use this class, please include
resource/i4jruntime.jarfrom your install4j installation into your class path. You do not need to distribute this file along with your application, install4j will do this automatically for you.To disable the splash screen from the command line on Windows,
-J-splash:nonecan be passed to the launcher executable. Other forms of the-splashargument that work with the standard Java launcher are not supported by install4j launchers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplashScreen.ConnectionExceptionThe exception thrown by methods of theSplashScreenclass to indicate that a splash screen operation was not successful.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidhide()Programmatically hide the splash screen.static voidwriteMessage(java.lang.String message)Update the status text line of the splash screen with a different message.
-
-
-
Method Detail
-
writeMessage
public static void writeMessage(java.lang.String message) throws SplashScreen.ConnectionExceptionUpdate the status text line of the splash screen with a different message.- Parameters:
message- the new text.- Throws:
SplashScreen.ConnectionException- if there is a communication problem
-
hide
public static void hide() throws SplashScreen.ConnectionExceptionProgrammatically hide the splash screen. By default, the splash screen will disappear when first window is shown.- Throws:
SplashScreen.ConnectionException- if there is a communication problem
-
-