From acea27ac428e3331dac1c841ea2f5712be121d45 Mon Sep 17 00:00:00 2001 From: ekresse Date: Thu, 7 Jan 2021 19:30:07 +0100 Subject: [PATCH] Dashboard Button FIX --- src/de/jaujau/gui/Dashboard_GUI.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/de/jaujau/gui/Dashboard_GUI.java b/src/de/jaujau/gui/Dashboard_GUI.java index da7d25f..f3ef6d1 100644 --- a/src/de/jaujau/gui/Dashboard_GUI.java +++ b/src/de/jaujau/gui/Dashboard_GUI.java @@ -149,7 +149,6 @@ public class Dashboard_GUI extends JPanel{ } }); mitte.setLayout(new BorderLayout(0, 0)); - mitte_unten.setVisible(false); mitte_unten.setPreferredSize(new Dimension(150, 50)); mitte_unten.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); btnherz.setVisible(false); @@ -248,6 +247,8 @@ public class Dashboard_GUI extends JPanel{ cl.show(panelCont, "2"); aktuellesSpiel.spiel(this); aktualisiereGUI(); + showaussetzen(); + showwunsch(); } public void showstart(){ @@ -366,7 +367,8 @@ public class Dashboard_GUI extends JPanel{ public void showaussetzen() { - aussetzen.setVisible(true); + aussetzen.setVisible(true); + mitte_unten.updateUI(); } public void aktualisiereGUI(){ @@ -380,6 +382,9 @@ public class Dashboard_GUI extends JPanel{ btnherz.setVisible(true); btnkaro.setVisible(true); btnkreuz.setVisible(true); + mitte_unten.updateUI(); + //mitte_unten.revalidate(); + //mitte_unten.repaint(); } }