java Programming Glossary: decimalprecision
JTextField limiting character amount input and accepting numeric only http://stackoverflow.com/questions/12793030/jtextfield-limiting-character-amount-input-and-accepting-numeric-only class NumericDocument extends PlainDocument protected int decimalPrecision 0 protected boolean allowNegative false public NumericDocument.. boolean allowNegative false public NumericDocument int decimalPrecision boolean allowNegative super this.decimalPrecision decimalPrecision.. int decimalPrecision boolean allowNegative super this.decimalPrecision decimalPrecision this.allowNegative allowNegative @Override..
|