Neues GUI und icons

This commit is contained in:
Noah
2021-09-28 15:26:57 +02:00
parent 0a1a0bf8fc
commit 16d469386c
8 changed files with 49 additions and 9 deletions
+41
View File
@@ -0,0 +1,41 @@
package gui;
import javax.swing.*;
public class GameGUI {
private JFrame jf;
public GameGUI(){
jf = new JFrame();
jf.setTitle("CT-Conway's Game of Life");
ImageIcon imageIcon = new ImageIcon("src/data/icon.png");
jf.setIconImage(imageIcon.getImage());
//getContentPane().setBackground(Color.decode("#121212"));
jf.setUndecorated(false);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setAutoRequestFocus(false);
jf.setLayout(null);
jf.setSize(752, 424);
//jf.getContentPane().setPreferredSize(new Dimension(752, 423));
jf.setResizable(false);
//initComponents();
//addComponents();
jf.setLocationRelativeTo(null);
jf.setVisible(true);
}
}