A Splash window.
Usage: MyApplication is your application class. Create a Splasher class which
opens the splash window, invokes the main method of your Application class,
and disposes the splash window afterwards.
Please note that we want to keep the Splasher class and the SplashWindow class
as small as possible. The less code and the less classes must be loaded into
the JVM to open the splash screen, the faster it will appear.
class Splasher {
public static void main(String[] args) {
SplashWindow.splash(Startup.class.getResource("splash.gif"));
MyApplication.main(args);
SplashWindow.disposeSplash();
}
}
author: Werner Randelshofer version: 2.1 2005-04-03 Revised. version: $Id$ |