wong chang kit wrote:in my code.
I got an error. Saying that
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "2,000"
In the code you didn't post?
To get better help sooner, post a
SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem.
Before that, read the API for JFormattedTextField and make sure you're using the correct method to obtain the value.