Java SplashScreen.setImageURL(URL imageURL)

Syntax

SplashScreen.setImageURL(URL imageURL) has the following syntax.

public void setImageURL(URL imageURL)   throws NullPointerException ,    IOException ,    IllegalStateException

Example

In the following code shows how to use SplashScreen.setImageURL(URL imageURL) method.


import java.awt.SplashScreen;
import java.net.URL;
// w  w w  .j a va  2  s  .  co  m
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 »




BasicStroke
BorderLayout
CardLayout
Color
Cursor
Desktop
DesktopManager
DisplayMode
EventQueue
FlowLayout
FocusTraversalPolicy
Font
FontMetrics
GradientPaint
Graphics
Graphics2D
GraphicsConfiguration
GraphicsDevice
GraphicsEnvironment
GridBagConstraints
GridBagLayout
GridLayout
Image
ItemSelectable
KeyboardFocusManager
LayoutManager
LayoutManager2
Point
Rectangle
Robot
Shape
SplashScreen
SystemColor
SystemTray
TexturePaint
TrayIcon
Toolkit
Transparency