Friday, April 11, 2008

Splash Screen with JAR using NetBeans or Eclipse IDE

How to set Splash screen for JAR file ?. After JDK 1.5.0 the problem of Splash Screen solved bye introducing two ways to display Splash Screen. You can find more about Splash Screen on SUN JAVA SITE.

But here a little guidance.

When you create a JAR file you need to add following line in your Manifest File.
 SplashScreen-Image: filename.gif

In NetBeans or Eclipse you can find Manifest file easily and add above line.

Also need to add filename.gif to your src folder

SRC
filename.gif (at root of source folder)
com (package)
joshi (package in side com)


So, when u jar the Application the gif image will be added as:

JAR
filename.gif (at root of source folder)
com (package)
joshi (package in side com)

Now just run the JAR file and you will get splash Screen.

Thanks & Regards,






2 comments:

Syed Amir said...

thanks it did work! however the splash screen didnt last long enough. i need it to be visible at least for a few seconds so that my users can be able the read the text on the splash screen do u know how to increase the splash screen time? thanx again!

Unknown said...

Simple y efectivo. A pesar del tiempo aun sigue siendo de utilidad tu post.

Muchas Gracias.

Contributors