title: How can I change the text that is actually displayed by a JTextArea?
body: <p>Does anyone know if there is a JTextArea method that I can override to change what is displayed on screen?</p>
  
  <p>I want to keep the contents of the field the same. Ie. If I set the text to "hello" and I call getText(), I wan't it to return "hello".</p>
  
  <p>However, I wan't to be able to override what is displayed on screen (Eg. to replace with '*****')</p>
  
  <p>Yes I know JPasswordField does this, but I need to use a JTextArea, and also would like fine control over what is displayed.</p>
  
  <p>Any ideas? Is there a display method that I can override? Many many thanks if you have!!!</p>