title: Permanent text in a textfield in Java
body: <p>I have a TextField in my program that will have data entered by the user, but I also have a variable value somewhere else that I need to permanently display at the end of my TextField. It cannot disappear when the user enters any data in the TextField. Can anyone give me a good implementation? Thanks.</p>
  
  <pre><code>[UserInput                (miles)]
  </code></pre>
  
  <p>**Above is an example of what I am talking about. "Miles" needs to always be in the TextField while the UserInput is changing.</p>
  
  <p>EDIT: "Implementation" was a bad choice of words. Let me rephrase, I can set up the field myself, but I am having trouble finding a way to set permanent text in a textfield. Just wondering if anyone knows an easy way.</p>