Java Swing Tutorial - Java SplashScreen.isVisible()








Syntax

SplashScreen.isVisible() has the following syntax.

public boolean isVisible()

Example

In the following code shows how to use SplashScreen.isVisible() method.

/* w w w . java2 s  .co  m*/
import java.awt.SplashScreen;
import java.net.URL;

public class Main {
  public static void main(String args[]) throws Exception{
    SplashScreen splash = SplashScreen.getSplashScreen();
    
    System.out.println(splash.isVisible());
  }
}