up previous next contents
Next: The full "driver" class Up: How to create and Previous: Updating the progress bar   Contents

Closing/destroying the splash screen

Whenever 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.


up previous next contents
Next: The full "driver" class Up: How to create and Previous: Updating the progress bar   Contents