-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
34 lines (24 loc) · 687 Bytes
/
Main.java
File metadata and controls
34 lines (24 loc) · 687 Bytes
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
/**
* Created by dimaer on 16/03/17.
*/
import Core.Screen;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class Main {
public static void main(String[] args)
{
Screen screen = new Screen(1024,768);
System.out.print("Program Started");
Frame mainFrame = new Frame("ChessGame");
mainFrame.add(screen);
mainFrame.setSize(800,600);
mainFrame.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent windowEvent) {
System.exit(0);
}
});
mainFrame.setVisible(true);
}
}