Java SplashScreen.getImageURL()
Syntax
SplashScreen.getImageURL() has the following syntax.
public URL getImageURL() throws IllegalStateException
Example
In the following code shows how to use SplashScreen.getImageURL() method.
/* www.j a v a 2s . 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();
splash.setImageURL(new URL("http://yourURL"));
System.out.println(splash.getImageURL());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »