Configured the Motor ignition at delay time, parachute and streamer deploy time fields 3 characters wide.
This commit is contained in:
parent
8afe72eb1e
commit
75ece3442f
@ -24,4 +24,14 @@ public class SpinnerEditor extends JSpinner.DefaultEditor {
|
||||
formatter.setOverwriteMode(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor which sets the number of columns in the editor.
|
||||
* @param spinner
|
||||
* @param cols
|
||||
*/
|
||||
public SpinnerEditor(JSpinner spinner, int cols ) {
|
||||
this(spinner);
|
||||
getTextField().setColumns(cols);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ public class MotorConfig extends JPanel {
|
||||
|
||||
dm = new DoubleModel(mount, "IgnitionDelay", 0);
|
||||
spin = new JSpinner(dm.getSpinnerModel());
|
||||
spin.setEditor(new SpinnerEditor(spin));
|
||||
spin.setEditor(new SpinnerEditor(spin,3));
|
||||
panel.add(spin, "gap rel rel");
|
||||
|
||||
//// seconds
|
||||
|
@ -201,7 +201,7 @@ public class ParachuteConfig extends RecoveryDeviceConfig {
|
||||
|
||||
m = new DoubleModel(component, "DeployDelay", 0);
|
||||
spin = new JSpinner(m.getSpinnerModel());
|
||||
spin.setEditor(new SpinnerEditor(spin));
|
||||
spin.setEditor(new SpinnerEditor(spin,3));
|
||||
panel.add(spin, "spanx, split");
|
||||
|
||||
//// seconds
|
||||
|
@ -202,7 +202,7 @@ public class StreamerConfig extends RecoveryDeviceConfig {
|
||||
|
||||
m = new DoubleModel(component, "DeployDelay", 0);
|
||||
spin = new JSpinner(m.getSpinnerModel());
|
||||
spin.setEditor(new SpinnerEditor(spin));
|
||||
spin.setEditor(new SpinnerEditor(spin,3));
|
||||
panel.add(spin, "spanx, split");
|
||||
|
||||
//// seconds
|
||||
|
Loading…
x
Reference in New Issue
Block a user