JFormattedTextField with MaskFormatter for input integer
843805Apr 2 2007 — edited Apr 2 2007I would like to create a input field for typing any integer number from 1 to 999 and I'm using JFormattedTextField with MaskFormatter("###").
But there is only accept 3 digital number. When i type a number between 1 to 99, it does not accept my number.
I also try JTextField with Numberformat, but user can type a non numeric value (such as "A","!" ....,etc)
so, how can I solve this problem?
thank you