title: NumberFormat text field without commas
body: <p>I have a <a href="https://docs.oracle.com/javase/8/docs/api/javax/swing/JFormattedTextField.html" rel="noreferrer">JFormattedTextField</a> which I want to accept numbers in the 5 digit range. The following code works correctly:</p>
  
  <pre><code>myNumberBox = new JFormattedTextField(NumberFormat.getIntegerInstance());
  </code></pre>
  
  <p>However, when I type "12345" into the field and switch focus, a comma is inserted due to my locale, making the text "12,345". How can I prevent commas from being added to my input? Better yet, can they be stripped out even if the user does insert commas?</p>