From db24c20606ce2cb5448aaef3ddb0a3ac8e0421ef Mon Sep 17 00:00:00 2001 From: Bill Kuker Date: Thu, 16 Feb 2012 01:22:52 +0000 Subject: [PATCH] Oops. I did need to removeAll when setting up the summary contents, so that changing units works --- gui/com/billkuker/rocketry/motorsim/visual/SummaryPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/com/billkuker/rocketry/motorsim/visual/SummaryPanel.java b/gui/com/billkuker/rocketry/motorsim/visual/SummaryPanel.java index aa0e972..2017633 100644 --- a/gui/com/billkuker/rocketry/motorsim/visual/SummaryPanel.java +++ b/gui/com/billkuker/rocketry/motorsim/visual/SummaryPanel.java @@ -70,7 +70,7 @@ public class SummaryPanel extends JPanel implements Burn.BurnProgressListener, R private void setBurnSummary(final BurnSummary bi) { SwingUtilities.invokeLater(new Thread() { public void run() { - remove(bar); + removeAll(); setLayout(new GridLayout(2, 5)); add(new JLabel("Rating")); add(new JLabel("Total Impulse")); -- 2.30.2