Closing/destroying the splash screenWhenever you are finished "starting up" your application you'll want to remove the splash screen and replace it with your application windows. Because my SplashScreen class is a simple JWindow, you can achieve this effect by making the window not visible, as I do in the splashScreenDestruct method shown below.
private void splashScreenDestruct() { screen.setScreenVisible(false); screen = null; } I also set the screen reference to null. This isn't required, but for the purposes of this article, I thought it might clarify my intent.
Next: The full "driver" class Up: How to create and Previous: Updating the progress bar Contents |