Dashboard Button FIX

This commit is contained in:
ekresse
2021-01-07 19:30:07 +01:00
parent fc5c5a6e42
commit acea27ac42

View File

@@ -149,7 +149,6 @@ public class Dashboard_GUI extends JPanel{
} }
}); });
mitte.setLayout(new BorderLayout(0, 0)); mitte.setLayout(new BorderLayout(0, 0));
mitte_unten.setVisible(false);
mitte_unten.setPreferredSize(new Dimension(150, 50)); mitte_unten.setPreferredSize(new Dimension(150, 50));
mitte_unten.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); mitte_unten.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
btnherz.setVisible(false); btnherz.setVisible(false);
@@ -248,6 +247,8 @@ public class Dashboard_GUI extends JPanel{
cl.show(panelCont, "2"); cl.show(panelCont, "2");
aktuellesSpiel.spiel(this); aktuellesSpiel.spiel(this);
aktualisiereGUI(); aktualisiereGUI();
showaussetzen();
showwunsch();
} }
public void showstart(){ public void showstart(){
@@ -367,6 +368,7 @@ public class Dashboard_GUI extends JPanel{
public void showaussetzen() { public void showaussetzen() {
aussetzen.setVisible(true); aussetzen.setVisible(true);
mitte_unten.updateUI();
} }
public void aktualisiereGUI(){ public void aktualisiereGUI(){
@@ -380,6 +382,9 @@ public class Dashboard_GUI extends JPanel{
btnherz.setVisible(true); btnherz.setVisible(true);
btnkaro.setVisible(true); btnkaro.setVisible(true);
btnkreuz.setVisible(true); btnkreuz.setVisible(true);
mitte_unten.updateUI();
//mitte_unten.revalidate();
//mitte_unten.repaint();
} }
} }