From: Bill Kuker Date: Thu, 16 Feb 2012 01:22:52 +0000 (+0000) Subject: Oops. I did need to removeAll when setting up the summary contents, so that changing... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=db24c20606ce2cb5448aaef3ddb0a3ac8e0421ef;p=sw%2Fmotorsim Oops. I did need to removeAll when setting up the summary contents, so that changing units works --- 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"));