# SplashScreen

Import: `import com.install4j.api.launcher.SplashScreen;`

```java
public class SplashScreen
```

This 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.jar` from 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:none` can be passed to the
launcher executable. Other forms of the `-splash` argument that work with the standard Java
launcher are not supported by install4j launchers.

| Type | Kind | Description |
|---|---|---|
## Nested types

| [SplashScreen.ConnectionException](SplashScreen.ConnectionException.md) | class | The exception thrown by methods of the `SplashScreen` class to indicate that a splash screen operation was not successful. |

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`writeMessage(String)`](#writemessage-string) | `void` | Update the status text line of the splash screen with a different message. |
| [`hide()`](#hide) | `void` | Programmatically hide the splash screen. |

### writeMessage(String)

```java
public static void writeMessage(String message) throws ConnectionException
```

Update 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()

```java
public static void hide() throws ConnectionException
```

Programmatically hide the splash screen. By default,
the splash screen will disappear when the first window is shown.


**Throws:**

- `SplashScreen.ConnectionException` — if there is a communication problem

