Browse Source

REPORT-56906&REPORT-56926 修正一个笔误

feature/10.0
方磊 3 years ago
parent
commit
7a85d9cd65
  1. 2
      designer-base/src/main/java/com/fr/design/gui/itextfield/UIPositiveIntNumberField.java

2
designer-base/src/main/java/com/fr/design/gui/itextfield/UIPositiveIntNumberField.java

@ -25,7 +25,7 @@ public class UIPositiveIntNumberField extends UINumberField {
public void insertString(int offset, String s, AttributeSet a) throws BadLocationException {
String str = getText(0, getLength());
if (!s.matches("^[0-9\\-]+$")) {
if (!s.matches("^[0-9]+$")) {
Toolkit.getDefaultToolkit().beep();
return;
}

Loading…
Cancel
Save