Files
CT-Conway-s-Game-of-Life/Backup/v4/gui/GUI.java
T
2021-09-28 22:10:02 +02:00

32 lines
580 B
Java

package v4.gui;
import v4.draw.Draw;
import javax.swing.*;
public class GUI {
JFrame jf;
public static Draw d;
public static final int WIDTH = 512, HEIGHT = 512, XOFF = 10, YOFF = 10;
public void create(){
jf = new JFrame("Game of Live");
jf.setSize(550, 570);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setLocationRelativeTo(null);
jf.setResizable(false);
d = new Draw();
d.setBounds(0, 0, 550, 570);
d.setVisible(true);
jf.add(d);
jf.setVisible(true);
}
}