The splash screen is made of a logo image on top of which is displayed muCommander version number (in the top right corner) and a loading message (in the lower left corner) which is updated by {@link com.mucommander.Launcher} to show startup progress. It is then closed by {@link com.mucommander.Launcher} when muCommander is fully started and ready for use.
@author Maxence BernardThere are two ways to show the native splash screen:
java -splash:filename.gif Test
manifest.mf
file: Manifest-Version: 1.0 Main-Class: Test SplashScreen-Image: filename.gifThe command line interface has higher precedence over the manifest setting.
The {@code SplashScreen} class provides the API for controlling the splash screen. This class may be used to close the splash screen, change the splash screen image, get the image position/size and paint in the splash screen. It cannot be used to create the splash screen; you should use the command line or manifest file option for that.
This class cannot be instantiated. Only a single instance of this class can exist, and it may be obtained using the {@link #getSplashScreen()}static method. In case the splash screen has not been created at application startup via the command line or manifest file option, the getSplashScreen
method returns null
.
@author Oleg Semenov
@since 1.6
Typical usage:
SplashScreen splashScreen = new SplashScreen ("/com/company/splash.jpg"); splashScreen.open (3000);@author Jacob Dreyer
SplashScreen splashScreen = SplashScreen.getInstance(ServerStartupSplashScreen.class); splashScreen.addBody("Some extra text");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|