-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTest.java
More file actions
44 lines (36 loc) · 1.07 KB
/
Test.java
File metadata and controls
44 lines (36 loc) · 1.07 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
package test;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UnsupportedLookAndFeelException;
public class Test extends JFrame{
public Test() {
this.setSize(800, 600);
this.setLocationRelativeTo(null);
this.setResizable(false);
this.setLayout(null);
JLabel lbl_image = new JLabel();
lbl_image.setBounds(0, 0, 800, 600);
lbl_image.setIcon(new ImageIcon("src/Image/ËÄÔÂÊÇÄãµÄ»ÑÑÔ.jpg"));
add(lbl_image);
this.setVisible(true);
}
public static void main(String[] args) {
try {
javax.swing.UIManager.setLookAndFeel("com.jtattoo.plaf.luna.LunaLookAndFeel");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Test test = new Test();
}
}