Restrict input length
Hi,
After havning read the posts here, i see that a lof of suggestions to use JFormattedTextField with a MaskFormatter.
The only problem is that if the field is reused then there is a formatting problem.
Let me elucidate, i have a field that says enter a max of 25 characters, when i enter it the first time process it and then display results. now when i want to change the entry in the field, if i go in the middle and delete somehting it acts strange...
please do try this
pieceId =new JFormattedTextField(new MaskFormatter("*************************"));
and let me know....
when i try to edit pieceId the second time over...the issue arises.
if someone has a better solution do let me know.
Thank You.
-Uday

