views:

160

answers:

2

Hi All,

How to create a splash screen as like netbeans or eclipse splash screen. Please help me for this

Regards,

Chandu

+3  A: 

Since java 1.6 you can specify this at the command line

java -splash:filename.gif SplashTest

See this article

stacker
Hi, Thanks for ur reply. But my requirement is to create a splash screen for a window application that should replicate netbeans or eclipse splash screen. Please help through a code snippet
Chandu
+3  A: 

Alternatively you can add an entry such as this one:

<SplashScreen-Image>images/splash.png</SplashScreen-Image>

To your MANIFEST.MF. You can have a build tool such as maven add this automatically.

There is also the posibility to simply use a JWindow as a splash screen, but it won't show until the JVM is running. Using the method stacker described(which is the same as the one I point out) you'll show the splash even before the JVM has finished loading, which might be necessary on older hardware.

Bozhidar Batsov
Hi, Thanks for ur reply. But my requirement is to create a splash screen for a window application that should replicate netbeans or eclipse splash screen.Please help through a code snippet.
Chandu