Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.*;
- public class Splash extends JWindow{
- public Splash() {
- JLabel imageLabel = new JLabel(new ImageIcon("UNOIMAGES/splash.gif"));
- setLayout(new BorderLayout());
- add(imageLabel, BorderLayout.CENTER);
- setBounds(630, 300,720,480);
- setModalExclusionType(Dialog.ModalExclusionType.APPLICATION_EXCLUDE);
- pack();
- setVisible(true);
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- // doe niets
- }
- dispose();
- }
- }
RAW Paste Data