NetBeans 6 Splash Screen
Update: 11/11/2010
This tutorial should still work on Netbeans 6.9.1+
The original thread link is broken thanks to Oracle taking over Sun's message boards, so this link is the best reference for now.
OLD POST BELOW
This is not for branding NetBeans, but rather for adding a standard splash screen to your application.
What do I mean?
NetBeans offers an option in your project properties to automatically load a splash screen.
IT DOESN'T WORK
Here's how you do it!
http://forum.java.sun.com/thread.jspa?messageID=10208126�
-Tres
This tutorial should still work on Netbeans 6.9.1+
The original thread link is broken thanks to Oracle taking over Sun's message boards, so this link is the best reference for now.
- Open NetBeans
- File, New, Java Desktop Application
- In the "Projects" area, click "Files"
- Locate the file in your main project called "manifest.mf"
- Double click it. It should open automatically in the source editor window
- Add a new line to the bottom of the file:
SplashScreen-Image: /package1/package2/filename.gif - This image file can be located inside your JAR
- Perform a clean build of your project and run the JAR by itself. The splash screen should now show while your application is launching.
- This new splash image can be JPEG, GIF, PNG, BMP and supports transparency for PNG an GIF
OLD POST BELOW
This is not for branding NetBeans, but rather for adding a standard splash screen to your application.
What do I mean?
NetBeans offers an option in your project properties to automatically load a splash screen.
IT DOESN'T WORK
Here's how you do it!
http://forum.java.sun.com/thread.jspa?messageID=10208126�
-Tres
Comments
There are two ways to show the native splash screen:
If your application is run from the command line or from a shortcut, use the -splash: Java application launcher option to show a splash screen:
java -splash:filename.gif SplashTest
If your application is packaged in a JAR file, you can use the SplashScreen-Image option in a manifest file to show a splash screen. Place the image in the JAR archive and specify the path in the option. For example, use this code in the manifest.mf file:
Manifest-Version: 1.0
Main-Class: SplashTest
SplashScreen-Image: filename.gif
The command-line interface has precedence over the manifest setting.