Problem :
The user can key in an integer with comma formatting but the commas must be in the right place , leading minus is OK but no dec point allowed : 12,34 and 12 34 and 123.0 invalid. Such errors are flagged.
I can solve this by hand coding but I thought that NumberFormat would raise a ParseException instead the number is truncated to 12 12 and 123.
I know that Sun spec mentions truncation , read past JavaRanch questions and
www.ibm.com/developerworks/java/library/j-numberformat/index.html which "reveals passing warts that can be surprising".
What do Swing programmers do ?
Thank you.