-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplashScreen.java
More file actions
97 lines (77 loc) · 2.17 KB
/
SplashScreen.java
File metadata and controls
97 lines (77 loc) · 2.17 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<<<<<<< HEAD
import java.awt.BorderLayout;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JWindow;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
public class SplashScreen extends JWindow {
private JPanel contentPane;
Icon icon = new ImageIcon(SplashScreen.class.getResource("giphy.gif"));
/**
* Launch the application.
*/
public static void main(String[] args) {
SplashScreen frame = new SplashScreen();
frame.setVisible(true);
}
/**
* Create the frame.
*/
public SplashScreen() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(null);
setContentPane(contentPane);
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setIcon(icon);
lblNewLabel.setBounds(10, 11, 375, 259);
contentPane.add(lblNewLabel);
}
private void setDefaultCloseOperation(int exitOnClose) {
// TODO Auto-generated method stub
}
}
=======
import java.awt.BorderLayout;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JWindow;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
public class SplashScreen extends JWindow {
private JPanel contentPane;
Icon icon = new ImageIcon(SplashScreen.class.getResource("giphy.gif"));
/**
* Launch the application.
*/
public static void main(String[] args) {
SplashScreen frame = new SplashScreen();
frame.setVisible(true);
}
/**
* Create the frame.
*/
public SplashScreen() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(null);
setContentPane(contentPane);
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setIcon(icon);
lblNewLabel.setBounds(10, 11, 375, 259);
contentPane.add(lblNewLabel);
}
private void setDefaultCloseOperation(int exitOnClose) {
// TODO Auto-generated method stub
}
}
>>>>>>> origin/master