org.brains2b.swingext.mask
Class NumberValidator

java.lang.Object
  extended by javax.swing.InputVerifier
      extended by org.brains2b.swingext.mask.NumberValidator
All Implemented Interfaces:
InputValidator

public class NumberValidator
extends javax.swing.InputVerifier
implements InputValidator

NumberValidator is an InputValidator that functions like a display mask for numbers.

for example: if you typed 50 using the default mask the displayed value would be 50,00
if you typed 1000,1 using the default mask the displayed value would be 1.000,10

You can set the mask the input will comply to through the Constructor

If the mask is not supplied the default "##.###9,99" is used.