SplashScreen.close() has the following syntax.
public void close() throws IllegalStateException
In the following code shows how to use SplashScreen.close() method.
// ww w .j a va2 s .c o m import java.awt.SplashScreen; public class Main { public static void main(String args[]) throws Exception{ SplashScreen splash = SplashScreen.getSplashScreen(); splash.close(); } }