Fix Override layout
Switches the override subcomponent checkbox before the override Cd checkbox + puts the textual info on the bottom
This commit is contained in:
parent
0511bbda4f
commit
336acb037f
@ -378,11 +378,18 @@ public class RocketComponentConfig extends JPanel {
|
|||||||
|
|
||||||
bs = new BasicSlider(m.getSliderModel(new DoubleModel(0), length));
|
bs = new BasicSlider(m.getSliderModel(new DoubleModel(0), length));
|
||||||
bm.addEnableComponent(bs);
|
bm.addEnableComponent(bs);
|
||||||
panel.add(bs, "growx 5, w 100lp, wrap 35lp");
|
panel.add(bs, "growx 5, w 100lp, wrap");
|
||||||
|
|
||||||
|
|
||||||
//END OVERRIDES CG ---------------------------------------------------
|
//END OVERRIDES CG ---------------------------------------------------
|
||||||
|
|
||||||
|
// Override subcomponents checkbox
|
||||||
|
bm = new BooleanModel(component, "OverrideSubcomponents");
|
||||||
|
check = new JCheckBox(bm);
|
||||||
|
//// Override mass and CG of all subcomponents
|
||||||
|
check.setText(trans.get("RocketCompCfg.checkbox.OverridemassandCG"));
|
||||||
|
panel.add(check, "spanx, wrap 35lp");
|
||||||
|
|
||||||
|
|
||||||
//BEGIN OVERRIDES CD ---------------------------------------------------
|
//BEGIN OVERRIDES CD ---------------------------------------------------
|
||||||
|
|
||||||
@ -408,22 +415,12 @@ public class RocketComponentConfig extends JPanel {
|
|||||||
|
|
||||||
//END OVERRIDES CP --------------------------------------------------
|
//END OVERRIDES CP --------------------------------------------------
|
||||||
|
|
||||||
|
//// The overridden mass does not include motors.
|
||||||
|
|
||||||
|
|
||||||
// Override subcomponents checkbox
|
|
||||||
bm = new BooleanModel(component, "OverrideSubcomponents");
|
|
||||||
check = new JCheckBox(bm);
|
|
||||||
//// Override mass and CG of all subcomponents
|
|
||||||
check.setText(trans.get("RocketCompCfg.checkbox.OverridemassandCG"));
|
|
||||||
panel.add(check, "gap para, spanx, wrap para");
|
|
||||||
|
|
||||||
//// <html>The overridden mass does not include motors.<br>
|
|
||||||
panel.add(new StyledLabel(trans.get("RocketCompCfg.lbl.longB1") +
|
panel.add(new StyledLabel(trans.get("RocketCompCfg.lbl.longB1") +
|
||||||
//// The center of gravity is measured from the front end of the
|
//// The center of gravity is measured from the front end of the
|
||||||
trans.get("RocketCompCfg.lbl.longB2") + " " +
|
trans.get("RocketCompCfg.lbl.longB2") + " " +
|
||||||
component.getComponentName().toLowerCase(Locale.getDefault()) + ".", -1),
|
component.getComponentName().toLowerCase(Locale.getDefault()) + ".", -1),
|
||||||
"spanx, wrap, gap para, height 0::30lp");
|
"spanx, pushy, aligny bottom");
|
||||||
|
|
||||||
return panel;
|
return panel;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user