title: How do I create a JTextField that ignores user input but lets components modify text?
body: <p>Here's what I'd like as a proof of concept: I want a Frame with a text field and a button on it.  Anything the user types into the text field is ignored, but if you click the button, it sets the text on the text field.  How would you do this?  </p>
  
  <p>I've done some research ahead of time and come up with a solution that I'll post as an answer.  But my concern is that there's a much easier way to do this.  I'm asking the question to find out if there's a better way.  </p>
  
  <p>Here's a screenshot of the reason I'm trying to build this proof of concept:</p>
  
  <p><img src="https://i.stack.imgur.com/PbGtE.png" alt="capture key inputs"></p>
  
  <p>I'm trying to build something just like this.  When user enters text, I want to ignore what they are saying, capture it, and put my own interpretation.  For example, if the user pressed <kbd>control+Y</kbd>, I want it to say this:</p>
  
  <p><img src="https://i.stack.imgur.com/XgD2H.png" alt="key input captured"></p>
  
  <p>I don't want to simply make the JTextField un-editable, because that grays out the box and hides the cursor.  I want people to know they should click on the text field and type.  </p>