From 26b1b36b786325eb299ec03f75cc2812635e2a71 Mon Sep 17 00:00:00 2001 From: ekresse Date: Mon, 11 Jan 2021 14:54:43 +0100 Subject: [PATCH] =?UTF-8?q?Level=20Anzeige=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/jaujau/gui/Dashboard_GUI.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/de/jaujau/gui/Dashboard_GUI.java b/src/de/jaujau/gui/Dashboard_GUI.java index c646457..bdd4710 100644 --- a/src/de/jaujau/gui/Dashboard_GUI.java +++ b/src/de/jaujau/gui/Dashboard_GUI.java @@ -70,6 +70,9 @@ public class Dashboard_GUI extends JPanel{ private final JScrollPane gegnerkartenpane = new JScrollPane(); private final JPanel gegnerkarten = new JPanel(); private final JButton getname = new JButton("setzen"); + private final JPanel panel_3 = new JPanel(); + private final JLabel level_beschreibung = new JLabel("Aktuelles Level:"); + private final JLabel level_count = new JLabel("0"); //Moving Image @@ -244,6 +247,18 @@ public class Dashboard_GUI extends JPanel{ } }); start.add(panel_1, BorderLayout.CENTER); + panel_1.setLayout(new BorderLayout(0, 0)); + panel_3.setPreferredSize(new Dimension(100, 50)); + + panel_1.add(panel_3, BorderLayout.NORTH); + level_beschreibung.setHorizontalTextPosition(SwingConstants.CENTER); + level_beschreibung.setHorizontalAlignment(SwingConstants.CENTER); + level_beschreibung.setFont(new Font("Tahoma", Font.PLAIN, 22)); + + panel_3.add(level_beschreibung); + level_count.setFont(new Font("Tahoma", Font.PLAIN, 22)); + + panel_3.add(level_count); start.add(panel_2, BorderLayout.SOUTH);