Neues GUI und icons
This commit is contained in:
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 812 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 266 KiB |
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" ?><svg data-name="Layer 1" id="Layer_1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><path d="M31,11.44A6.49,6.49,0,0,0,19.82,7H12.18A6.49,6.49,0,0,0,1,11.44,84.11,84.11,0,0,0,0,23.53c0,242,1,4,2.92,4.36A5.41,5.41,0,0,0,4,28a3.9,3.9,0,0,0,3.82-2.82c0.39-1.1,1.09-2.62,1.52-3.54A4,4,0,0,0,14.87,19h2.26a4,4,0,0,0,5.52,2.64c0.43,0.91,1.13,2.43,1.52,3.54A3.9,3.9,0,0,0,28,28a5.4,5.4,0,0,0,1.09-.11C31,27.5,32,25.95,32,23.53A84.11,84.11,0,0,0,31,11.44ZM6.89,24.85a3,3,0,0,1-3.77,2.06C1.37,26.54,1,24.87,1,23.53a78.9,78.9,0,0,1,.62-9.28A6.52,6.52,0,0,0,7,18v0a4,4,0,0,0,1.5,3.11C8,22.13,7.3,23.68,6.89,24.85ZM11,21a3,3,0,0,1-3-3,2.89,2.89,0,0,1,0-.43l0-.57H7.5a5.5,5.5,0,1,1,4.57-2.44L11.75,15l0.53,0.25A3,3,0,0,1,11,21Zm4-3a4,4,0,0,0-1.82-3.35A6.48,6.48,0,0,0,13,8H19a6.48,6.48,0,0,0-.22,6.65A4,4,0,0,0,17,18H15Zm3,0a3,3,0,0,1,1.73-2.71L20.25,15l-0.32-.48A5.5,5.5,0,1,1,24.52,17H23.88L24,17.57A2.89,2.89,0,0,1,24,18,3,3,0,0,1,18,18Zm10.88,8.91a3,3,0,0,1-3.77-2.06C24.7,23.68,24,22.13,23.5,21.11A4,4,0,0,0,25,18v0a6.51,6.51,0,0,0,5.38-3.73A79,79,0,0,1,31,23.53C31,24.87,30.63,26.54,28.88,26.91Z"/><path d="M9,13h2V10H9V8H6v2H4v3H6v2H9V13ZM8,14H7V12H5V11H7V9H8v2h2v1H8v2Z"/><path d="M24.5,10A1.5,1.5,0,1,0,23,8.5,1.5,1.5,0,0,0,24.5,10Zm0-2a0.5,0.5,0,1,1-.5.5A0.5,0.5,0,0,1,24.5,8Z"/><path d="M24.5,16A1.5,1.5,0,1,0,23,14.5,1.5,1.5,0,0,0,24.5,16Zm0-2a0.5,0.5,0,1,1-.5.5A0.5,0.5,0,0,1,24.5,14Z"/><path d="M21.5,13A1.5,1.5,0,1,0,20,11.5,1.5,1.5,0,0,0,21.5,13Zm0-2a0.5,0.5,0,1,1-.5.5A0.5,0.5,0,0,1,21.5,11Z"/><path d="M27.5,13A1.5,1.5,0,1,0,26,11.5,1.5,1.5,0,0,0,27.5,13Zm0-2a0.5,0.5,0,1,1-.5.5A0.5,0.5,0,0,1,27.5,11Z"/><path d="M11,16a2,2,0,1,0,2,2A2,2,0,0,0,11,16Zm0,3a1,1,0,1,1,1-1A1,1,0,0,1,11,19Z"/><path d="M21,16a2,2,0,1,0,2,2A2,2,0,0,0,21,16Zm0,3a1,1,0,1,1,1-1A1,1,0,0,1,21,19Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -38,7 +38,7 @@ public class StartGUI{
|
||||
|
||||
jf.setTitle("CT-Conway's Game of Life");
|
||||
|
||||
ImageIcon imageIcon = new ImageIcon("src/data/icon.png");
|
||||
ImageIcon imageIcon = new ImageIcon("src/data/cotroller.png");
|
||||
jf.setIconImage(imageIcon.getImage());
|
||||
|
||||
//getContentPane().setBackground(Color.decode("#121212"));
|
||||
@@ -68,7 +68,7 @@ public class StartGUI{
|
||||
Font head = new Font("Segoe UI Light", Font.PLAIN, 24);
|
||||
Font text = new Font("Segoe UI Light", Font.PLAIN, 16);
|
||||
|
||||
heading = new JLabel("Conway's Game of Life Control");
|
||||
heading = new JLabel("Control Panel");
|
||||
heading.setFont(head);
|
||||
heading.setForeground(Color.decode("#121212"));
|
||||
heading.setBounds(50, 25, 400, 50);
|
||||
@@ -210,7 +210,7 @@ public class StartGUI{
|
||||
|
||||
manuelStart.setBounds(225, 280, 150, 50);
|
||||
|
||||
Icon gif = new ImageIcon("src/data/control.gif");
|
||||
Icon gif = new ImageIcon("src/data/control2.png");
|
||||
JLabel gifLabel = new JLabel(gif);
|
||||
gifLabel.setBounds(391, 25, 336, 336);
|
||||
jf.getContentPane().add(gifLabel);
|
||||
|
||||
+3
-5
@@ -1,15 +1,13 @@
|
||||
package main;
|
||||
|
||||
import gui.GameGUI;
|
||||
import gui.StartGUI;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
StartGUI startGUI = new StartGUI();
|
||||
float x = 0;
|
||||
|
||||
|
||||
|
||||
GameGUI gameGUI = new GameGUI();
|
||||
// StartGUI startGUI = new StartGUI();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user