All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.valkyriercp.application.splash.AwtSplashScreen Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.application.splash;

import org.springframework.util.Assert;

public class AwtSplashScreen implements SplashScreen {
    private java.awt.SplashScreen splashScreen;

    public void dispose() {
        splashScreen.close();
    }

    public void splash() {
        splashScreen = java.awt.SplashScreen.getSplashScreen();
        Assert.state(splashScreen != null, "No splash screen defined on startup");
    }

    /**
     * Returns the java.awt.SplashScreen implementation that has been set at startup. The splashscreen
     * can then be used to perform custom painting, etc...
     *
     * @return the splash screen
     */
    protected java.awt.SplashScreen getSplashScreen() {
        return splashScreen;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy