reorder fields in DeploymentSelectionDialog to make it clearer that after the condition is met the delay is added
This commit is contained in:
parent
9ef1139515
commit
194f1539ec
@ -89,18 +89,6 @@ public class DeploymentSelectionDialog extends JDialog {
|
|||||||
}
|
}
|
||||||
panel.add( deployEvent, "spanx 3, growx, wrap");
|
panel.add( deployEvent, "spanx 3, growx, wrap");
|
||||||
|
|
||||||
// ... and delay
|
|
||||||
//// plus
|
|
||||||
panel.add(new JLabel(trans.get("ParachuteCfg.lbl.plusdelay")), "right");
|
|
||||||
|
|
||||||
final DoubleModel delay = new DoubleModel(newConfiguration, "DeployDelay", UnitGroup.UNITS_SHORT_TIME, 0);
|
|
||||||
final JSpinner delaySpinner = new JSpinner(delay.getSpinnerModel());
|
|
||||||
delaySpinner.setEditor(new SpinnerEditor(delaySpinner, 3));
|
|
||||||
panel.add(delaySpinner, "spanx, split");
|
|
||||||
|
|
||||||
//// seconds
|
|
||||||
panel.add(new JLabel(trans.get("ParachuteCfg.lbl.seconds")), "wrap paragraph");
|
|
||||||
|
|
||||||
// Altitude:
|
// Altitude:
|
||||||
altText = new JLabel(trans.get("ParachuteCfg.lbl.Altitude"));
|
altText = new JLabel(trans.get("ParachuteCfg.lbl.Altitude"));
|
||||||
panel.add(altText);
|
panel.add(altText);
|
||||||
@ -115,6 +103,18 @@ public class DeploymentSelectionDialog extends JDialog {
|
|||||||
altSlider = new BasicSlider(alt.getSliderModel(100, 1000));
|
altSlider = new BasicSlider(alt.getSliderModel(100, 1000));
|
||||||
panel.add(altSlider, "w 100lp, wrap");
|
panel.add(altSlider, "w 100lp, wrap");
|
||||||
|
|
||||||
|
// ... and delay
|
||||||
|
//// plus
|
||||||
|
panel.add(new JLabel(trans.get("ParachuteCfg.lbl.plusdelay")), "right");
|
||||||
|
|
||||||
|
final DoubleModel delay = new DoubleModel(newConfiguration, "DeployDelay", UnitGroup.UNITS_SHORT_TIME, 0);
|
||||||
|
final JSpinner delaySpinner = new JSpinner(delay.getSpinnerModel());
|
||||||
|
delaySpinner.setEditor(new SpinnerEditor(delaySpinner, 3));
|
||||||
|
panel.add(delaySpinner, "spanx, split");
|
||||||
|
|
||||||
|
//// seconds
|
||||||
|
panel.add(new JLabel(trans.get("ParachuteCfg.lbl.seconds")), "wrap paragraph");
|
||||||
|
|
||||||
deployEvent.addActionListener(new ActionListener() {
|
deployEvent.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user