From a325df957f63645ac2dac35e56b8bc6d795aa26c Mon Sep 17 00:00:00 2001 From: ekresse Date: Mon, 11 Jan 2021 21:13:57 +0100 Subject: [PATCH] GUI Highscore Fix --- src/de/jaujau/gui/Dashboard_GUI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/de/jaujau/gui/Dashboard_GUI.java b/src/de/jaujau/gui/Dashboard_GUI.java index 1668e9e..d832866 100644 --- a/src/de/jaujau/gui/Dashboard_GUI.java +++ b/src/de/jaujau/gui/Dashboard_GUI.java @@ -354,7 +354,10 @@ public class Dashboard_GUI extends JPanel{ // Highscore Tabelle private void renderHighscore() { - + for(Component c : highscore.getComponents()){ + highscore.remove(c); + highscore.revalidate(); + } String[][] rowData = spielerverwaltung.gethighscoreTabelle(); //Bsp. Datensatz muss noch entfernt werden.