From ea911d3c208c8a29fd0e66f1a6d6220463354ae4 Mon Sep 17 00:00:00 2001 From: ekresse Date: Wed, 6 Jan 2021 18:40:28 +0100 Subject: [PATCH] GUI Warnings entfernt --- src/de/jaujau/gui/Dashboard_GUI.java | 19 ------------------- src/de/jaujau/gui/GUI.java | 2 -- src/de/jaujau/gui/Hilfe_GUI.java | 6 ++++-- src/de/jaujau/gui/Navigation_GUI.java | 19 +++++-------------- src/de/jaujau/gui/texturenauswaehlen_GUI.java | 3 --- 5 files changed, 9 insertions(+), 40 deletions(-) diff --git a/src/de/jaujau/gui/Dashboard_GUI.java b/src/de/jaujau/gui/Dashboard_GUI.java index 08b7cf0..522278c 100644 --- a/src/de/jaujau/gui/Dashboard_GUI.java +++ b/src/de/jaujau/gui/Dashboard_GUI.java @@ -6,30 +6,16 @@ import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; - -import de.jaujau.daten.Audio; import de.jaujau.daten.Spieler; import de.jaujau.daten.Spielerverwaltung; import de.jaujau.daten.Texturenpakete; -import de.jaujau.spiellogik.Anwendung; import de.jaujau.spiellogik.Spiel; - -import javax.swing.JTextField; import javax.swing.JLabel; -import javax.swing.BoxLayout; -import javax.swing.ComboBoxModel; -import javax.swing.DefaultComboBoxModel; - import java.awt.Dimension; import java.awt.Image; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; - import javax.swing.JComboBox; -import javax.swing.JButton; import javax.swing.SwingConstants; import javax.swing.ImageIcon; -import javax.swing.DebugGraphics; import java.awt.Rectangle; import java.awt.Component; import java.awt.FlowLayout; @@ -37,8 +23,6 @@ import java.awt.ComponentOrientation; import java.awt.Cursor; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; - import javax.swing.UIManager; import java.awt.Font; @@ -55,16 +39,13 @@ public class Dashboard_GUI extends JPanel{ private JComboBox comboBox = new JComboBox(); private final JPanel panel_2 = new JPanel(); private final JLabel lblNewLabel_1 = new JLabel("Entwickler: Sebastian, Moritz, Fabian, Aladin, Elmar"); - private final JButton btnNewButton = new JButton("New button"); private final JPanel spielfeld = new JPanel(); private final JPanel player_hand = new JPanel(); private final JPanel gegner_hand = new JPanel(); private final JLabel ablagestapel = new JLabel(""); private final JLabel ziehstapel = new JLabel(""); - private final JLabel lblNewLabel_2_1 = new JLabel(""); JPanel spielerkarten = new JPanel(); JLabel labels[] = new JLabel[32]; - private Audio sound = new Audio(); private Spiel aktuellesSpiel; private JLabel label_aktuellerSpieler; private Texturenpakete texturenpakete; diff --git a/src/de/jaujau/gui/GUI.java b/src/de/jaujau/gui/GUI.java index 710f4a5..8b8c817 100644 --- a/src/de/jaujau/gui/GUI.java +++ b/src/de/jaujau/gui/GUI.java @@ -5,7 +5,6 @@ import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.BorderLayout; import java.awt.Color; -import java.awt.Component; import java.awt.Dimension; import javax.swing.JLabel; import javax.swing.ImageIcon; @@ -13,7 +12,6 @@ import javax.swing.SwingConstants; import de.jaujau.daten.Spielerverwaltung; import de.jaujau.daten.Texturenpakete; -import de.jaujau.spiellogik.Anwendung; import de.jaujau.spiellogik.Spiel; import java.awt.event.MouseAdapter; diff --git a/src/de/jaujau/gui/Hilfe_GUI.java b/src/de/jaujau/gui/Hilfe_GUI.java index 2a0d30d..27cb316 100644 --- a/src/de/jaujau/gui/Hilfe_GUI.java +++ b/src/de/jaujau/gui/Hilfe_GUI.java @@ -1,8 +1,6 @@ package de.jaujau.gui; import java.awt.BorderLayout; -import java.awt.EventQueue; - import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; @@ -14,6 +12,10 @@ import javax.swing.JTextArea; public class Hilfe_GUI extends JFrame { + /** + * + */ + private static final long serialVersionUID = 1L; private JPanel contentPane; /** diff --git a/src/de/jaujau/gui/Navigation_GUI.java b/src/de/jaujau/gui/Navigation_GUI.java index 653f1c4..14ee73f 100644 --- a/src/de/jaujau/gui/Navigation_GUI.java +++ b/src/de/jaujau/gui/Navigation_GUI.java @@ -2,37 +2,28 @@ package de.jaujau.gui; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; - -import javax.swing.Box; -import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.SwingConstants; - import java.awt.BorderLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JLabel; import java.awt.Color; import java.awt.Font; +import java.awt.GridLayout; import java.awt.Image; - import javax.swing.BoxLayout; import java.awt.Component; -import javax.swing.GroupLayout; -import javax.swing.GroupLayout.Alignment; import javax.swing.ImageIcon; -import java.awt.CardLayout; -import java.awt.FlowLayout; -import java.awt.GridLayout; -import java.awt.GridBagLayout; -import java.awt.GridBagConstraints; -import java.awt.Insets; - public class Navigation_GUI extends JPanel implements ActionListener { + /** + * + */ + private static final long serialVersionUID = 1L; private JPanel panel; diff --git a/src/de/jaujau/gui/texturenauswaehlen_GUI.java b/src/de/jaujau/gui/texturenauswaehlen_GUI.java index 88be19b..77dd22a 100644 --- a/src/de/jaujau/gui/texturenauswaehlen_GUI.java +++ b/src/de/jaujau/gui/texturenauswaehlen_GUI.java @@ -1,8 +1,5 @@ package de.jaujau.gui; -import java.util.*; - - /** * Class texturenauswaehlen_GUI */