title: How to disable the ability to click on the JTextArea
body: <p>I need to disable the ability to click your mouse in the JTextArea.</p>
  
  <p>Below is what I currently have for my JTextArea: </p>
  
  <pre><code>textArea1 = new JTextArea();
  textArea1.setBorder(BorderFactory.createLineBorder(Color.black, 1));
  DefaultCaret caret = (DefaultCaret) textArea1.getCaret(); // this line and the line below was inspired by a comment found here: https://stackoverflow.com/questions/15623287/how-to-always-scroll-to-bottom-of-text-area
  caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
  textArea1.setEditable(false);
  JScrollPane scrollPane1 = new JScrollPane(textArea1)
  </code></pre>
  
  <p>Once you press on the JTextArea with your mouse, it almost stops the whole DefaultCaret method from working. I thought previously it was because you could highlight but that was not the case. </p>
  
  <p>The DefaultCaret method causes the JTextArea to always be at the bottom when new text gets added to the textarea.</p>