Simple splash screen

This is a basic class that you can use with transparent or translucent PNG or GIF images to display a centered splash screen of any size or shape… you can choose which display device the window appears on too.

GIF images or fully non-transparent images are faster to display of course. Any optimising hints are welcome, for my system it still takes about 3 seconds on a cold launch of the JVM for the PNG image to display…

http://www.adam.com.au/kellyjones/YABB/SplashScreen.java

here’s a sample image: http://www.adam.com.au/kellyjones/YABB/mygame.png

or you could try this one and add some nice sound effects for good measure…

The Java class contains a main method that will demo itself with an image called “mygame.png” in the current path (using class.getResource());