Chandu
Chandu

Reputation: 871

creating splash screen

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

Regards,

Chandu

Upvotes: 2

Views: 2263

Answers (5)

Mellow
Mellow

Reputation: 1

If you want a splash screen like a simple image that loads prior to your application, right click in netbeans on the project name, go to properties. In properties window go to RUN in the last box (VM OPTIONS) paste this:

-splash:src/images/pictureName.jpg

This above assumes you have a java package called images with the image you want in it, you can change the path to where ever you want.

Upvotes: 0

max
max

Reputation: 1

You can also use the splasher-maven-plugin from www.bitstrings.org to create or edit a splash screen. It may be useful for branding or when you need to overlay some dynamic info like the version or some profile.

Upvotes: 0

Evan
Evan

Reputation: 306

There is a sample Javafx equivalent of Splash screen. However this splash screen is basically a java swing applet that is called from javafx to be displayed to the user and simulates more or less eclipse and netbeans splash screen using progress bar and titles for the loaded contents. Following is the link http://0divides0.wordpress.com/2011/03/17/splash-screen-with-javafx/

You must be able to get the code and seperate out the splash screen code written in java swings and use it for yourself.

Upvotes: 0

Bozhidar Batsov
Bozhidar Batsov

Reputation: 56595

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.

Upvotes: 5

stacker
stacker

Reputation: 68962

Since java 1.6 you can specify this at the command line

java -splash:filename.gif SplashTest

See this article

Upvotes: 4

Related Questions