title: JavaFx TextField Currency format filter
body: <p>I do get the price from the user but I want to filter the digits and puts, in each 3 digits like 123,123,123.</p>
  
  <pre><code>txtPrice.textProperty().addListener((observable, oldValue, newValue) -&gt; {
     if (!newValue.matches("\\d*")){
         txtPrice.setText(newValue.replaceAll("[^\\d]",""));
     }
  });
  </code></pre>