-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplash.java
More file actions
39 lines (24 loc) · 782 Bytes
/
Splash.java
File metadata and controls
39 lines (24 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import java.awt.*;
import javax.swing.*;
import javax.swing.border.LineBorder;
public class Splash extends JWindow {
private Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
public Splash () {
JLabel lbImage = new JLabel (new ImageIcon ("Splash.jpg"));
Color cl = new Color (0, 0, 0);
lbImage.setBorder (new LineBorder (cl, 1));
getContentPane().add (lbImage, BorderLayout.CENTER);
pack();
setSize (getSize().width, getSize().height);
setLocation (d.width / 2 - getWidth() / 2, d.height / 2 - getHeight() / 2);
show();
for (int i = 0; i <= 1000; i++) { }
new BankSystem ();
toFront();
dispose ();
setVisible (false);
}
public static void main (String args[]) {
new Splash ();
}
}