Out of the corner of my eye I saw New Splash-Screen Functionality in Mustang, and how you can get a splash image up even BEFORE the JVM is started.
You can set a splash filename via:
java -splash:filename.gif SplashTest
or set it up in a jar manifest:
Manifest-Version: 1.0
Main-Class: SplashTest
SplashScreen-Image: filename.gif
And, of course you will often want to do more than just show an image, you may want to overlay a progress bar:
SplashScreen splash = SplashScreen.getSplashScreen();
Graphics2D g = (Graphics2D)splash.getGraphics();
Dimension size = splash.getDimension();
g.setComposite(AlphaComposite.Clear);
g.fillRect(0, 0, size.width, size.height);
g.setPaintMode();
I can’t wait to see the new splash images show up in Mustang based Java apps of the future :)
October 4th, 2005 at 5:24 pm
Hey, why the sarcasm? ;-)