[fix][partial] Addresses some instances of #329 in NoseCones and Transitions
This commit is contained in:
parent
f5d786fab6
commit
2ac764b4c3
@ -44,104 +44,98 @@ public class NoseConeConfig extends RocketComponentConfig {
|
|||||||
public NoseConeConfig(OpenRocketDocument d, RocketComponent c) {
|
public NoseConeConfig(OpenRocketDocument d, RocketComponent c) {
|
||||||
super(d, c);
|
super(d, c);
|
||||||
|
|
||||||
DoubleModel m;
|
final JPanel panel = new JPanel(new MigLayout("", "[][65lp::][30lp::]"));
|
||||||
JPanel panel = new JPanel(new MigLayout("", "[][65lp::][30lp::]"));
|
|
||||||
|
|
||||||
//// Shape selection
|
//// Shape selection
|
||||||
//// Nose cone shape:
|
{//// Nose cone shape:
|
||||||
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Noseconeshape")));
|
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Noseconeshape")));
|
||||||
|
|
||||||
Transition.Shape selected = ((NoseCone) component).getType();
|
Transition.Shape selected = ((NoseCone) component).getType();
|
||||||
Transition.Shape[] typeList = Transition.Shape.values();
|
Transition.Shape[] typeList = Transition.Shape.values();
|
||||||
|
|
||||||
final JComboBox<Transition.Shape> typeBox = new JComboBox<Transition.Shape>(typeList);
|
final JComboBox<Transition.Shape> typeBox = new JComboBox<Transition.Shape>(typeList);
|
||||||
typeBox.setEditable(false);
|
typeBox.setEditable(false);
|
||||||
typeBox.setSelectedItem(selected);
|
typeBox.setSelectedItem(selected);
|
||||||
typeBox.addActionListener(new ActionListener() {
|
typeBox.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
Transition.Shape s = (Transition.Shape) typeBox.getSelectedItem();
|
Transition.Shape s = (Transition.Shape) typeBox.getSelectedItem();
|
||||||
((NoseCone) component).setType(s);
|
((NoseCone) component).setType(s);
|
||||||
description.setText(PREDESC + s.getNoseConeDescription());
|
description.setText(PREDESC + s.getNoseConeDescription());
|
||||||
updateEnabled();
|
updateEnabled();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
panel.add(typeBox, "span, wrap rel");
|
panel.add(typeBox, "span, wrap rel");
|
||||||
|
|
||||||
|
//// Shape parameter:
|
||||||
|
this.shapeLabel = new JLabel(trans.get("NoseConeCfg.lbl.Shapeparam"));
|
||||||
|
panel.add(shapeLabel);
|
||||||
|
|
||||||
|
final DoubleModel parameterModel = new DoubleModel(component, "ShapeParameter");
|
||||||
|
|
||||||
|
this.shapeSpinner = new JSpinner(parameterModel.getSpinnerModel());
|
||||||
|
shapeSpinner.setEditor(new SpinnerEditor(shapeSpinner));
|
||||||
|
panel.add(shapeSpinner, "growx");
|
||||||
|
|
||||||
|
DoubleModel min = new DoubleModel(component, "ShapeParameterMin");
|
||||||
|
DoubleModel max = new DoubleModel(component, "ShapeParameterMax");
|
||||||
|
this.shapeSlider = new BasicSlider(parameterModel.getSliderModel(min, max));
|
||||||
|
panel.add(shapeSlider, "skip, w 100lp, wrap para");
|
||||||
|
|
||||||
|
updateEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
{ /// Nose cone length:
|
||||||
|
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Noseconelength")));
|
||||||
|
|
||||||
|
final DoubleModel lengthModel = new DoubleModel(component, "Length", UnitGroup.UNITS_LENGTH, 0);
|
||||||
|
JSpinner spin = new JSpinner(lengthModel.getSpinnerModel());
|
||||||
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
|
panel.add(spin, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(lengthModel), "growx");
|
||||||
|
panel.add(new BasicSlider(lengthModel.getSliderModel(0, 0.1, 0.7)), "w 100lp, wrap");
|
||||||
|
}
|
||||||
|
{
|
||||||
|
/// Base diameter:
|
||||||
|
|
||||||
|
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Basediam")));
|
||||||
|
|
||||||
|
final DoubleModel aftRadiusModel = new DoubleModel(component, "AftRadius", 2.0, UnitGroup.UNITS_LENGTH, 0); // Diameter = 2*Radius
|
||||||
|
component.addChangeListener(aftRadiusModel);
|
||||||
|
final JSpinner radiusSpinner = new JSpinner(aftRadiusModel.getSpinnerModel());
|
||||||
|
radiusSpinner.setEditor(new SpinnerEditor(radiusSpinner));
|
||||||
|
panel.add(radiusSpinner, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(aftRadiusModel), "growx");
|
||||||
|
panel.add(new BasicSlider(aftRadiusModel.getSliderModel(0, 0.04, 0.2)), "w 100lp, wrap 0px");
|
||||||
|
|
||||||
|
JCheckBox check = new JCheckBox(aftRadiusModel.getAutomaticAction());
|
||||||
|
//// Automatic
|
||||||
|
check.setText(trans.get("NoseConeCfg.checkbox.Automatic"));
|
||||||
|
panel.add(check, "skip, span 2, wrap");
|
||||||
|
}
|
||||||
|
|
||||||
|
{//// Wall thickness:
|
||||||
|
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Wallthickness")));
|
||||||
|
|
||||||
|
final DoubleModel thicknessModel = new DoubleModel(component, "Thickness", UnitGroup.UNITS_LENGTH, 0);
|
||||||
|
component.addChangeListener(thicknessModel);
|
||||||
|
final JSpinner thicknessSpinner = new JSpinner(thicknessModel.getSpinnerModel());
|
||||||
|
thicknessSpinner.setEditor(new SpinnerEditor(thicknessSpinner));
|
||||||
|
panel.add(thicknessSpinner, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(thicknessModel), "growx");
|
||||||
|
panel.add(new BasicSlider(thicknessModel.getSliderModel(0, 0.01)), "w 100lp, wrap 0px");
|
||||||
|
|
||||||
|
|
||||||
|
final JCheckBox filledCheckbox = new JCheckBox(new BooleanModel(component, "Filled"));
|
||||||
//// Shape parameter
|
//// Filled
|
||||||
//// Shape parameter:
|
filledCheckbox .setText(trans.get("NoseConeCfg.checkbox.Filled"));
|
||||||
shapeLabel = new JLabel(trans.get("NoseConeCfg.lbl.Shapeparam"));
|
panel.add(filledCheckbox, "skip, span 2, wrap");
|
||||||
panel.add(shapeLabel);
|
}
|
||||||
|
|
||||||
m = new DoubleModel(component, "ShapeParameter");
|
|
||||||
|
|
||||||
shapeSpinner = new JSpinner(m.getSpinnerModel());
|
|
||||||
shapeSpinner.setEditor(new SpinnerEditor(shapeSpinner));
|
|
||||||
panel.add(shapeSpinner, "growx");
|
|
||||||
|
|
||||||
DoubleModel min = new DoubleModel(component, "ShapeParameterMin");
|
|
||||||
DoubleModel max = new DoubleModel(component, "ShapeParameterMax");
|
|
||||||
shapeSlider = new BasicSlider(m.getSliderModel(min, max));
|
|
||||||
panel.add(shapeSlider, "skip, w 100lp, wrap para");
|
|
||||||
|
|
||||||
updateEnabled();
|
|
||||||
|
|
||||||
|
|
||||||
//// Length
|
|
||||||
//// Nose cone length:
|
|
||||||
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Noseconelength")));
|
|
||||||
|
|
||||||
m = new DoubleModel(component, "Length", UnitGroup.UNITS_LENGTH, 0);
|
|
||||||
JSpinner spin = new JSpinner(m.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(m), "growx");
|
|
||||||
panel.add(new BasicSlider(m.getSliderModel(0, 0.1, 0.7)), "w 100lp, wrap");
|
|
||||||
|
|
||||||
//// Diameter
|
|
||||||
//// Base diameter:
|
|
||||||
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Basediam")));
|
|
||||||
|
|
||||||
m = new DoubleModel(component, "AftRadius", 2.0, UnitGroup.UNITS_LENGTH, 0); // Diameter = 2*Radius
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(m), "growx");
|
|
||||||
panel.add(new BasicSlider(m.getSliderModel(0, 0.04, 0.2)), "w 100lp, wrap 0px");
|
|
||||||
|
|
||||||
JCheckBox check = new JCheckBox(m.getAutomaticAction());
|
|
||||||
//// Automatic
|
|
||||||
check.setText(trans.get("NoseConeCfg.checkbox.Automatic"));
|
|
||||||
panel.add(check, "skip, span 2, wrap");
|
|
||||||
|
|
||||||
|
|
||||||
//// Wall thickness:
|
|
||||||
panel.add(new JLabel(trans.get("NoseConeCfg.lbl.Wallthickness")));
|
|
||||||
|
|
||||||
m = new DoubleModel(component, "Thickness", UnitGroup.UNITS_LENGTH, 0);
|
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(m), "growx");
|
|
||||||
panel.add(new BasicSlider(m.getSliderModel(0, 0.01)), "w 100lp, wrap 0px");
|
|
||||||
|
|
||||||
|
|
||||||
check = new JCheckBox(new BooleanModel(component, "Filled"));
|
|
||||||
//// Filled
|
|
||||||
check.setText(trans.get("NoseConeCfg.checkbox.Filled"));
|
|
||||||
panel.add(check, "skip, span 2, wrap");
|
|
||||||
|
|
||||||
|
|
||||||
panel.add(new JLabel(""), "growy");
|
panel.add(new JLabel(""), "growy");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//// Description
|
//// Description
|
||||||
|
|
||||||
@ -153,8 +147,6 @@ public class NoseConeConfig extends RocketComponentConfig {
|
|||||||
|
|
||||||
|
|
||||||
//// Material
|
//// Material
|
||||||
|
|
||||||
|
|
||||||
panel2.add(materialPanel( Material.Type.BULK), "span, wrap");
|
panel2.add(materialPanel( Material.Type.BULK), "span, wrap");
|
||||||
panel.add(panel2, "cell 4 0, gapleft paragraph, aligny 0%, spany");
|
panel.add(panel2, "cell 4 0, gapleft paragraph, aligny 0%, spany");
|
||||||
|
|
||||||
|
@ -45,13 +45,7 @@ public class TransitionConfig extends RocketComponentConfig {
|
|||||||
public TransitionConfig(OpenRocketDocument d, RocketComponent c) {
|
public TransitionConfig(OpenRocketDocument d, RocketComponent c) {
|
||||||
super(d, c);
|
super(d, c);
|
||||||
|
|
||||||
DoubleModel m;
|
final JPanel panel = new JPanel(new MigLayout("gap rel unrel", "[][65lp::][30lp::]", ""));
|
||||||
JSpinner spin;
|
|
||||||
JCheckBox checkbox;
|
|
||||||
|
|
||||||
JPanel panel = new JPanel(new MigLayout("gap rel unrel", "[][65lp::][30lp::]", ""));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//// Shape selection
|
//// Shape selection
|
||||||
//// Transition shape:
|
//// Transition shape:
|
||||||
@ -73,108 +67,107 @@ public class TransitionConfig extends RocketComponentConfig {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
panel.add(typeBox, "span, split 2");
|
panel.add(typeBox, "span, split 2");
|
||||||
|
|
||||||
//// Clipped
|
|
||||||
checkbox = new JCheckBox(new BooleanModel(component, "Clipped"));
|
|
||||||
//// Clipped
|
|
||||||
checkbox.setText(trans.get("TransitionCfg.checkbox.Clipped"));
|
|
||||||
panel.add(checkbox, "wrap");
|
|
||||||
|
|
||||||
|
|
||||||
//// Shape parameter:
|
{//// Clipped
|
||||||
shapeLabel = new JLabel(trans.get("TransitionCfg.lbl.Shapeparam"));
|
final JCheckBox checkbox = new JCheckBox(new BooleanModel(component, "Clipped"));
|
||||||
panel.add(shapeLabel);
|
checkbox.setText(trans.get("TransitionCfg.checkbox.Clipped"));
|
||||||
|
panel.add(checkbox, "wrap");
|
||||||
m = new DoubleModel(component, "ShapeParameter");
|
|
||||||
|
|
||||||
shapeSpinner = new JSpinner(m.getSpinnerModel());
|
|
||||||
shapeSpinner.setEditor(new SpinnerEditor(shapeSpinner));
|
|
||||||
panel.add(shapeSpinner, "growx");
|
|
||||||
|
|
||||||
DoubleModel min = new DoubleModel(component, "ShapeParameterMin");
|
|
||||||
DoubleModel max = new DoubleModel(component, "ShapeParameterMax");
|
|
||||||
shapeSlider = new BasicSlider(m.getSliderModel(min, max));
|
|
||||||
panel.add(shapeSlider, "skip, w 100lp, wrap");
|
|
||||||
|
|
||||||
updateEnabled();
|
|
||||||
|
|
||||||
|
|
||||||
//// Length
|
//// Shape parameter:
|
||||||
//// Transition length:
|
this.shapeLabel = new JLabel(trans.get("TransitionCfg.lbl.Shapeparam"));
|
||||||
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Transitionlength")));
|
panel.add(shapeLabel);
|
||||||
|
}
|
||||||
m = new DoubleModel(component, "Length", UnitGroup.UNITS_LENGTH, 0);
|
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(m), "growx");
|
|
||||||
panel.add(new BasicSlider(m.getSliderModel(0, 0.05, 0.3)), "w 100lp, wrap");
|
|
||||||
|
|
||||||
|
|
||||||
//// Transition diameter 1
|
{
|
||||||
//// Fore diameter:
|
final DoubleModel shapeModel = new DoubleModel(component, "ShapeParameter");
|
||||||
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Forediam")));
|
|
||||||
|
|
||||||
DoubleModel od = new DoubleModel(component, "ForeRadius", 2, UnitGroup.UNITS_LENGTH, 0);
|
|
||||||
// Diameter = 2*Radius
|
|
||||||
|
|
||||||
spin = new JSpinner(od.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(od), "growx");
|
|
||||||
panel.add(new BasicSlider(od.getSliderModel(0, 0.04, 0.2)), "w 100lp, wrap 0px");
|
|
||||||
|
|
||||||
checkbox = new JCheckBox(od.getAutomaticAction());
|
|
||||||
//// Automatic
|
|
||||||
checkbox.setText(trans.get("TransitionCfg.checkbox.Automatic"));
|
|
||||||
panel.add(checkbox, "skip, span 2, wrap");
|
|
||||||
|
|
||||||
|
|
||||||
//// Transition diameter 2
|
this.shapeSpinner = new JSpinner(shapeModel.getSpinnerModel());
|
||||||
//// Aft diameter:
|
shapeSpinner.setEditor(new SpinnerEditor(shapeSpinner));
|
||||||
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Aftdiam")));
|
panel.add(shapeSpinner, "growx");
|
||||||
|
|
||||||
od = new DoubleModel(component, "AftRadius", 2, UnitGroup.UNITS_LENGTH, 0);
|
|
||||||
// Diameter = 2*Radius
|
|
||||||
|
|
||||||
spin = new JSpinner(od.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(od), "growx");
|
|
||||||
panel.add(new BasicSlider(od.getSliderModel(0, 0.04, 0.2)), "w 100lp, wrap 0px");
|
|
||||||
|
|
||||||
checkbox = new JCheckBox(od.getAutomaticAction());
|
|
||||||
//// Automatic
|
|
||||||
checkbox.setText(trans.get("TransitionCfg.checkbox.Automatic"));
|
|
||||||
panel.add(checkbox, "skip, span 2, wrap");
|
|
||||||
|
|
||||||
|
|
||||||
//// Wall thickness:
|
DoubleModel min = new DoubleModel(component, "ShapeParameterMin");
|
||||||
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Wallthickness")));
|
DoubleModel max = new DoubleModel(component, "ShapeParameterMax");
|
||||||
|
this.shapeSlider = new BasicSlider(shapeModel.getSliderModel(min, max));
|
||||||
m = new DoubleModel(component, "Thickness", UnitGroup.UNITS_LENGTH, 0);
|
panel.add(shapeSlider, "skip, w 100lp, wrap");
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
|
||||||
panel.add(spin, "growx");
|
|
||||||
|
|
||||||
panel.add(new UnitSelector(m), "growx");
|
|
||||||
panel.add(new BasicSlider(m.getSliderModel(0, 0.01)), "w 100lp, wrap 0px");
|
|
||||||
|
|
||||||
//// Filled
|
|
||||||
checkbox = new JCheckBox(new BooleanModel(component, "Filled"));
|
|
||||||
//// Filled
|
|
||||||
checkbox.setText(trans.get("TransitionCfg.checkbox.Filled"));
|
|
||||||
panel.add(checkbox, "skip, span 2, wrap");
|
|
||||||
|
|
||||||
|
|
||||||
|
updateEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
{/// Transition length:
|
||||||
|
|
||||||
|
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Transitionlength")));
|
||||||
|
|
||||||
|
final DoubleModel lengthModel = new DoubleModel(component, "Length", UnitGroup.UNITS_LENGTH, 0);
|
||||||
|
|
||||||
|
final JSpinner lengthSpinner = new JSpinner(lengthModel.getSpinnerModel());
|
||||||
|
lengthSpinner.setEditor(new SpinnerEditor(lengthSpinner));
|
||||||
|
panel.add(lengthSpinner, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(lengthModel), "growx");
|
||||||
|
panel.add(new BasicSlider(lengthModel.getSliderModel(0, 0.05, 0.3)), "w 100lp, wrap");
|
||||||
|
}
|
||||||
|
|
||||||
|
{ /// Fore diameter:
|
||||||
|
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Forediam")));
|
||||||
|
|
||||||
|
final DoubleModel foreRadiusModel = new DoubleModel(component, "ForeRadius", 2, UnitGroup.UNITS_LENGTH, 0);
|
||||||
|
// Diameter = 2*Radius
|
||||||
|
component.addChangeListener(foreRadiusModel );
|
||||||
|
|
||||||
|
final JSpinner foreRadiusSpinner = new JSpinner(foreRadiusModel.getSpinnerModel());
|
||||||
|
foreRadiusSpinner.setEditor(new SpinnerEditor(foreRadiusSpinner));
|
||||||
|
panel.add(foreRadiusSpinner, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(foreRadiusModel), "growx");
|
||||||
|
panel.add(new BasicSlider(foreRadiusModel.getSliderModel(0, 0.04, 0.2)), "w 100lp, wrap 0px");
|
||||||
|
|
||||||
|
final JCheckBox checkbox = new JCheckBox(foreRadiusModel.getAutomaticAction());
|
||||||
|
//// Automatic
|
||||||
|
checkbox.setText(trans.get("TransitionCfg.checkbox.Automatic"));
|
||||||
|
panel.add(checkbox, "skip, span 2, wrap");
|
||||||
|
}
|
||||||
|
|
||||||
|
{ //// Aft diameter:
|
||||||
|
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Aftdiam")));
|
||||||
|
|
||||||
|
final DoubleModel aftRadiusModel = new DoubleModel(component, "AftRadius", 2, UnitGroup.UNITS_LENGTH, 0);
|
||||||
|
// Diameter = 2*Radius
|
||||||
|
component.addChangeListener(aftRadiusModel);
|
||||||
|
|
||||||
|
final JSpinner aftRadiusSpinner = new JSpinner(aftRadiusModel .getSpinnerModel());
|
||||||
|
aftRadiusSpinner.setEditor(new SpinnerEditor(aftRadiusSpinner));
|
||||||
|
panel.add(aftRadiusSpinner, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(aftRadiusModel), "growx");
|
||||||
|
panel.add(new BasicSlider(aftRadiusModel.getSliderModel(0, 0.04, 0.2)), "w 100lp, wrap 0px");
|
||||||
|
|
||||||
|
final JCheckBox aftRadiusCheckbox = new JCheckBox(aftRadiusModel.getAutomaticAction());
|
||||||
|
//// Automatic
|
||||||
|
aftRadiusCheckbox.setText(trans.get("TransitionCfg.checkbox.Automatic"));
|
||||||
|
panel.add(aftRadiusCheckbox, "skip, span 2, wrap");
|
||||||
|
}
|
||||||
|
|
||||||
|
{ /// Wall thickness:
|
||||||
|
panel.add(new JLabel(trans.get("TransitionCfg.lbl.Wallthickness")));
|
||||||
|
|
||||||
|
final DoubleModel thicknessModel = new DoubleModel(component, "Thickness", UnitGroup.UNITS_LENGTH, 0);
|
||||||
|
component.addChangeListener(thicknessModel);
|
||||||
|
|
||||||
|
final JSpinner thicknessSpinner = new JSpinner(thicknessModel.getSpinnerModel());
|
||||||
|
thicknessSpinner.setEditor(new SpinnerEditor(thicknessSpinner));
|
||||||
|
panel.add(thicknessSpinner, "growx");
|
||||||
|
|
||||||
|
panel.add(new UnitSelector(thicknessModel), "growx");
|
||||||
|
panel.add(new BasicSlider(thicknessModel.getSliderModel(0, 0.01)), "w 100lp, wrap 0px");
|
||||||
|
|
||||||
|
//// Filled
|
||||||
|
final JCheckBox thicknessCheckbox = new JCheckBox(new BooleanModel(component, "Filled"));
|
||||||
|
//// Filled
|
||||||
|
thicknessCheckbox.setText(trans.get("TransitionCfg.checkbox.Filled"));
|
||||||
|
panel.add(thicknessCheckbox, "skip, span 2, wrap");
|
||||||
|
}
|
||||||
|
|
||||||
//// Description
|
//// Description
|
||||||
|
|
||||||
JPanel panel2 = new JPanel(new MigLayout("ins 0"));
|
JPanel panel2 = new JPanel(new MigLayout("ins 0"));
|
||||||
|
|
||||||
description = new DescriptionArea(5);
|
description = new DescriptionArea(5);
|
||||||
@ -184,8 +177,6 @@ public class TransitionConfig extends RocketComponentConfig {
|
|||||||
|
|
||||||
|
|
||||||
//// Material
|
//// Material
|
||||||
|
|
||||||
|
|
||||||
panel2.add(materialPanel(Material.Type.BULK), "span, wrap");
|
panel2.add(materialPanel(Material.Type.BULK), "span, wrap");
|
||||||
panel.add(panel2, "cell 4 0, gapleft paragraph, aligny 0%, spany");
|
panel.add(panel2, "cell 4 0, gapleft paragraph, aligny 0%, spany");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user