From 9d3d5a403cc054ef760e98a479ddb09a520d4792 Mon Sep 17 00:00:00 2001 From: ekresse Date: Mon, 11 Jan 2021 15:30:59 +0100 Subject: [PATCH] JFrame Image Icon 1.0 --- src/de/jaujau/gui/GUI.java | 7 +++++++ src/de/jaujau/spiellogik/Anwendung.java | 2 ++ src/img/jaujau.png | Bin 0 -> 7118 bytes 3 files changed, 9 insertions(+) create mode 100644 src/img/jaujau.png diff --git a/src/de/jaujau/gui/GUI.java b/src/de/jaujau/gui/GUI.java index 19c4e0f..477ca22 100644 --- a/src/de/jaujau/gui/GUI.java +++ b/src/de/jaujau/gui/GUI.java @@ -16,8 +16,13 @@ import de.jaujau.spiellogik.Spiel; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; +import java.io.File; +import java.io.IOException; + +import javax.imageio.ImageIO; import javax.swing.BoxLayout; import java.awt.Font; +import java.awt.Toolkit; @@ -38,6 +43,7 @@ public class GUI extends JFrame{ // Constructors // public GUI (Texturenpakete texturenpakete, Spielerverwaltung speicherung) { + setIconImage(Toolkit.getDefaultToolkit().getImage(GUI.class.getResource("/img/jaujau.png"))); setMinimumSize(new Dimension(1000, 600)); // jaujau.getAktuellesSpiel(); @@ -46,6 +52,7 @@ public class GUI extends JFrame{ setPreferredSize(new Dimension(800, 500)); setSize(1565, 916); getContentPane().setLayout(new BorderLayout(0, 0)); + JPanel Menue = new JPanel(); Menue.setPreferredSize(new Dimension(270, 450)); diff --git a/src/de/jaujau/spiellogik/Anwendung.java b/src/de/jaujau/spiellogik/Anwendung.java index 01a43f1..5410449 100644 --- a/src/de/jaujau/spiellogik/Anwendung.java +++ b/src/de/jaujau/spiellogik/Anwendung.java @@ -7,6 +7,8 @@ */ package de.jaujau.spiellogik; +import javax.swing.ImageIcon; + import de.jaujau.daten.Spielerverwaltung; import de.jaujau.daten.Texturenpakete; import de.jaujau.gui.GUI; diff --git a/src/img/jaujau.png b/src/img/jaujau.png new file mode 100644 index 0000000000000000000000000000000000000000..e966ba012dbc588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