Java Development Kit since version 1.6 provide new SplashScreen class for your swing application. If you don't know how to add SplashScreen to your Swing Application, this tutorial will guide you how to add SplashScreen into your swing application in NetBeans IDE.


Before you begin, you need to install the following software on your computer:

  1. NetBeans IDE 6.1 (download)
  2. Java Development Kit version 1.6 (download)

Creating New Java Desktop Application Project

After all required software installed in your computer, now launch NetBeans IDE then create new project like this:

  1. Choose File > New Project to create new project
  2. In New Project Wizard, select Java under Categories and choose New Java Desktop Application Project under Project. Image:1_AddingSplashScreenToYourSwingApplicationInNetBeansIDE.png
  3. In New Desktop Application Wizard, give name NBSplashScreen in Project Name, leave the Set as Main Project selected and choose Basic Application under Choose Application Shell like this screenshot :Image:2_AddingSplashScreenToYourSwingApplicationInNetBeansIDE.png
  4. Click Finish button.

Choosing Image For Your SplashScreen

Before you chose the image that will be used as SplashScreen, you can create package in your project that will be used to keep the image that was chosen by you. after you choose which image you can use in SplashScreen. Now you can create new packages in your project, this packages will be

Deploying Application

  1. Right click tree node at Project Inspector, then choose properties.
  2. In the Project Properties Window, choose Run under Categories then give at VM Options field
  3. Click Finish button.

Setelah anda melakukan hal diatas, sekarang tekanlah tombol F6 pada keyboard untuk menjalankan projectnya.

After you doing that, now press F6 at your keyboard for launching your NBSplashScreen project. See, your application now have SplashScreen at startup.

Related Topics

- SplashScreen at JDK 1.6


Martinus Ady H - mrt.itnewbies

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo