SplashScreen.getImageURL() has the following syntax.
public URL getImageURL() throws IllegalStateException
In the following code shows how to use SplashScreen.getImageURL() method.
/* w w w . j a v a 2 s. c om*/ import java.awt.SplashScreen; import java.net.URL; public class Main { public static void main(String args[]) throws Exception{ SplashScreen splash = SplashScreen.getSplashScreen(); splash.setImageURL(new URL("http://yourURL")); System.out.println(splash.getImageURL()); } }