-
Notifications
You must be signed in to change notification settings - Fork 1
/
Sp.java
43 lines (27 loc) · 766 Bytes
/
Sp.java
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
40
41
42
43
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Sp {
Sp()
{
JWindow jwin = new JWindow();
Container cp111=jwin.getContentPane();
JLabel slabel=new JLabel();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
ImageIcon ic111=new ImageIcon("ani_logo.gif");
slabel.setIcon(ic111);
slabel.setSize(360,360);
cp111.add(slabel);
// jwin.setLocation(250,180);
jwin.setLocation(screenSize.width/2 - 250,screenSize.height/2 - 150);
jwin.setSize(460,460);
jwin.setVisible(true);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
jwin.setVisible(false);
jwin.dispose();
}
}