javafx: bind label text property with TextField's + FORMAT result
<p>I have a TextField, where user input salary. The TF have a TextFormatter based on Default Locale. next to The TextField there is a Label, In this Label I want to Show the TextField Text Formatted as Currency, For all of This I use this Code:</p>

<pre><code>TextField text = new TextField();
Label show = new Label();

TextFormatter&lt;Number&gt; formatter = new TextFormatter&lt;&gt;(new FormatStringConverter&lt;&gt;(DecimalFormat.getNumberInstance()));

text.setTextFormatter(formatter);

show.textProperty().bind(Bindings.concat(text.getTextFormatter().valueProperty().asString())
.concat(" ").concat(Currency.getInstance(Locale.getDefault()).getCurrencyCode()));

return new HBox(text, show);
</code></pre>

<p>The result:
<a href="https://i.stack.imgur.com/Qyloy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qyloy.png" alt="enter image description here"></a></p>

<p>As you can see The label text is not formatted as a number - because no formatter have been applied -. <strong>So my Question</strong> is how Can I make the text of the label formatted and the same time binded with the TextField TextProperty.</p>

<p>Someone May Ask: Why not use a currency formatter instead of number formatter like:</p>

<pre><code>new TextFormatter&lt;&gt;(new FormatStringConverter&lt;&gt;(DecimalFormat.getCurrencyInstance()));
</code></pre>

<p>well The answer is, when the user wants to enter the value, he will need to remove ALL digits BUT the the dollar sign for example, if the user enter a value without the dollar sign, the new value will not be accepted.</p>

<p>That's why I want to show The Formatted value as a currency in a Label, and NOT use the Currency Formatter. Thanks.</p>