]> git.gag.com Git - sw/motorsim/commitdiff
Fix to update multigrain editor when you choose a new graintype
authorBill Kuker <bkuker@billkuker.com>
Thu, 2 Jul 2009 19:09:29 +0000 (19:09 +0000)
committerBill Kuker <bkuker@billkuker.com>
Thu, 2 Jul 2009 19:09:29 +0000 (19:09 +0000)
src/com/billkuker/rocketry/motorsim/visual/MotorEditor.java

index a0cd74045bf70d89556cff807d265e988264a4f4..9a56c6418cb86a6e5b9cae3d45d85f44584cf35a 100644 (file)
@@ -105,6 +105,8 @@ public class MotorEditor extends JTabbedPane implements PropertyChangeListener,
                                                                ((MultiGrain) g).setGrain(ng);\r
                                                                p.remove(grainEditorIndex);\r
                                                                p.add(new Editor(ng), grainEditorIndex);\r
+                                                               p.remove(0);\r
+                                                               p.add(new Editor(g), 0);\r
                                                                System.out.println("Chose new grain");\r
                                                        }\r
                                                }\r