net.pacbell.jfai.toh.util
Class Launcher
java.lang.Object
net.pacbell.jfai.toh.util.Launcher
public final class Launcher
- extends Object
Displays a splash image during the start of an application.
The launcher invokes the main method of the other application using the
Reflection API, thereby avoiding most of the class loading time. By keeping
the launcher class small, the splash image can be displayed as early as
possible. Original source:
"How to do a fast Splash screen in Java".
- Author:
- Werner Randelshofer, Jürgen Failenschmid
Method Summary |
static void |
main(String[] args)
Displays the splash image and launches the application class given by
name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
- Displays the splash image and launches the application class given by
name. Invocation arguments of the Launcher:
appName splashName arg1 arg2 ...
- appName
- Fully qualified name of the application class to be launched. It
must have a static
main
method, which must return after
the application window is displayed.
- splashName
- URL of the image to be displayed as splash screen. The pixel data
referenced by the specified URL must be in one of the following formats:
GIF, JPEG or PNG. The image is accessed using
ClassLoader.getResource(java.lang.String)
.
- arg1 arg2 ...
- Any remaining arguments are passed on to the other application.
- Parameters:
args
- the arguments found during invocation