-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart.java
More file actions
42 lines (32 loc) · 1.01 KB
/
Start.java
File metadata and controls
42 lines (32 loc) · 1.01 KB
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
package UniBuddy;
import javax.swing.*;
import java.awt.*;
public class Start extends JFrame implements Runnable{
Thread t;
Start(){
ImageIcon image1a = new ImageIcon(ClassLoader.getSystemResource("Pictures/mainLogin.jpeg"));
Image image1b = image1a.getImage().getScaledInstance(1460, 780, Image.SCALE_DEFAULT);
ImageIcon image1c = new ImageIcon(image1b);
JLabel image1 = new JLabel(image1c);
add(image1);
/*ImageIcon image1a = new ImageIcon(ClassLoader.getSystemResource("Pictures/StartPageUniBuddy.jpeg"));
JLabel image1 = new JLabel(image1a);
add(image1);*/
t = new Thread(this);
t.start();
setVisible(true);
setLocation(250, 100);
setSize(1200, 900);
}
public void run(){
try {
Thread.sleep(5000);
setVisible(false);
new Login();
} catch (Exception e) {
}
}
public static void main(String[] args) {
new Start();
}
}