-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWelcome.java
47 lines (38 loc) · 1.26 KB
/
Welcome.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
44
45
46
47
import javax.swing.*;
import java.awt.*;
public class Welcome {
JFrame welcome = new JFrame("Game Of Words");
JLabel label = new JLabel();
JTextField full = new JTextField();
JButton load = new JButton();
public Welcome() {
welcome.setVisible(true);
welcome.setSize(1000,600);
welcome.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
welcome.setResizable(false);
welcome.add(label);
ImageIcon icon = new ImageIcon(this.getClass().getResource("/img/GOB.png"));
welcome.setIconImage(icon.getImage());
ImageIcon image = new ImageIcon(this.getClass().getResource("/img/homepage.png"));
label.setIcon(image);
label.setSize(1000,600);
label.add(load);
full.setEditable(false);
full.setBackground(Color.GRAY);
full.setBounds(97,478, 797, 19);
label.add(full);
load.setBackground(new Color(0x00FFFF));
int w=0;
for( int i=0 ; i<100;i++){
load.setBounds(100,480,w,15);
w+=8;
try {
Thread.sleep(30);
} catch (InterruptedException e) {
System.out.println(e);
}
}
new Menu();
welcome.dispose();
}
}