I am trying to use a MaskedFormatter in a JFormattedTextField to
disallow the user from entering anything but a number less than 4
digits long. To allow a 3 digit number, I can use "###" for the mask,
but how do I allow 3, 2 and 1 digit numbers? I.e. how do I make a mask
that allows *upto* 3 digits instead of exactly 3 digits?
Sasquatch
Knute Johnson - 03 Aug 2006 23:19 GMT
> I am trying to use a MaskedFormatter in a JFormattedTextField to
> disallow the user from entering anything but a number less than 4
[quoted text clipped - 3 lines]
>
> Sasquatch
I don't think you can that way. Use an InputVerifier to limit a range
of numbers.

Signature
Knute Johnson
email s/nospam/knute/