-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShow.java
46 lines (40 loc) · 974 Bytes
/
Show.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
/**
* Write a description of class Show here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.*;
import java.util.*;
public class Show extends JFrame {
final static BattleField bf = new BattleField();
final JPanel jp = new JPanel();
public Show()
{
initUI();
}
private void initUI()
{
setLocationRelativeTo(null);
setSize(1000, 500);
add(bf);
setVisible(true);
setTitle("Application");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[] args)
{
EventQueue.invokeLater(new Runnable()
{
@Override
public void run()
{
Show ex = new Show();
}
});
SwingUtilities.invokeLater(new FileLevel());
}
}