AddingSplashScreenToYourSwingApplicationInNetBeansIDE
Introduction
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.
Preparation
Before you begin, you need to install the following software on your computer:
Creating New Java Desktop Application Project
After all required software installed in your computer, now launch NetBeans IDE then create new project like this:
- Choose File > New Project to create new project
- In New Project Wizard, select Java under Categories and choose New Java Desktop Application Project under Project.
- 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 :
- 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
- Right click tree node at Project Inspector, then choose properties.
- In the Project Properties Window, choose Run under Categories then give at VM Options field
- 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

