blob: 018ee0d44d4cb7a6dd187911334b3c47b6b707d8 (
plain)
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
|
package uk.co.notori.gol;
import javax.swing.*;
import java.awt.*;
/**
* Main class for desktop testing
*/
public class Main {
static {
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "info");
System.setProperty("org.slf4j.simpleLogger.logFile", "System.err");
System.setProperty("org.slf4j.simpleLogger.showDateTime", "true");
System.setProperty("org.slf4j.simpleLogger.showShortLogName", "true");
System.setProperty("org.slf4j.simpleLogger.dateTimeFormat", "yyyy-MM-dd'T'HH:mm:ss.SSSZ");
}
public static void main(String[] args) {
Util.setKindle(false);
JFrame frame = new JFrame("Conway's Game of Life");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800, 600);
new MainScreen(frame, new MainScreen.ExitHook() {
public void exit() {
System.exit(0);
}
});
frame.setVisible(true);
}
}
|