SimpleSplashScreen.java Source code

Java tutorial

Introduction

Here is the source code for SimpleSplashScreen.java

Source

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();

    }
}