Browse Source

REPORT-31219 设计器打印边距需要支持负数设置

feature/big-screen
Bruce 5 years ago
parent
commit
7a58515a00
  1. 2
      designer-realize/src/main/java/com/fr/design/report/UnitFieldPane.java

2
designer-realize/src/main/java/com/fr/design/report/UnitFieldPane.java

@ -67,7 +67,7 @@ public class UnitFieldPane extends JPanel {
this.unitType = unitType; 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 = ((JSpinner.DefaultEditor) valueSpinner.getEditor()).getTextField();
textField.setColumns(OperatingSystem.isWindows() ? TEXT_FIELD_COLUMNS_WINDOWS : TEXT_FIELD_COLUMNS); textField.setColumns(OperatingSystem.isWindows() ? TEXT_FIELD_COLUMNS_WINDOWS : TEXT_FIELD_COLUMNS);
InputEventBaseOnOS.addBasicEditInputMap(textField); InputEventBaseOnOS.addBasicEditInputMap(textField);

Loading…
Cancel
Save