title: Formatting (for money) with setText(String.valueOf)
body: <p>In my code there are some calls to a method that set the values of some JTextFields</p>
  
  <pre><code>fields[7].setText(String.valueOf(inv.get(currentDisplay).feeValue()));
  </code></pre>
  
  <p>This works and it is doing what I want but the values look like this 81.65849999999999</p>
  
  <p>How would I make the output of String.valueOf look like the normal output of </p>
  
  <pre><code>System.out.printf( "$%,.2f", getDollarAmount() ) 
  </code></pre>