Simple splash screen : Splash Screen « Swing JFC « Java






Simple splash screen

Simple splash screen
   

import javax.swing.JLabel;
import javax.swing.JWindow;
import javax.swing.SwingConstants;

public class SimpleSplashScreen {
  public static void main(String[] arg) {
    JWindow jwin = new JWindow();
    jwin.getContentPane()
        .add(
            new JLabel("Loading ZIP/JAR Manager...",
                SwingConstants.CENTER));
    jwin.setBounds(200, 200, 200, 100);
    jwin.setVisible(true);

    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }

    jwin.setVisible(false);
    jwin.dispose();

  }
}


           
         
    
    
  








Related examples in the same category

1.A simple application to show a title screen in the center of the screenA simple application to show a title screen in the center of the screen
2.A simple Splash screen
3.A splash screen for an application
4.A progress bar indicating the progress of application initialization
5.Class representing an application splash screenClass representing an application splash screen
6.JSplash extends JWindow
7.Splash Screen based on JWindowSplash Screen based on JWindow
8.SplashScreen extends JWindowSplashScreen extends JWindow