|
|
|
@ -67,7 +67,7 @@ public class UnitFieldPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
this.unitType = unitType; |
|
|
|
|
|
|
|
|
|
valueSpinner = new UIBasicSpinner(new SpinnerNumberModel(0.0, 0.0, Double.MAX_VALUE, 1.0)); |
|
|
|
|
valueSpinner = new UIBasicSpinner(new SpinnerNumberModel(0.0, Integer.MIN_VALUE, Double.MAX_VALUE, 1.0)); |
|
|
|
|
textField = ((JSpinner.DefaultEditor) valueSpinner.getEditor()).getTextField(); |
|
|
|
|
textField.setColumns(OperatingSystem.isWindows() ? TEXT_FIELD_COLUMNS_WINDOWS : TEXT_FIELD_COLUMNS); |
|
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(textField); |
|
|
|
|