Maximum text length
I have this code:
JFormattedTextField jft=new JFormattedTextField(new MaskFormatter("###"));
I thought that this will allow text to be maximum length 3 but this code actually demands that length must be exactly 3 numbers.
How do I make that I can type maximum 3 numbers?

