title: Disable editing in a JTextPane while allowing visible cursor movement
body: <p>I have a <code>JTextPane</code> which is populated by reading from a file, after which the data is parsed and formatted.  The user is not allowed to edit the <code>JTextPane</code>, but I want them to be able to navigate in it with a visible cursor.</p>
  
  <p>If I use <code>setEditable(false)</code>, the cursor is invisible, although it is possible to indirectly observe the position of the invisible cursor by holding down <strong><em>Shift</em></strong> and using the arrow keys to select a block of text.</p>
  
  <p>To enable a visible cursor while disallowing editing, instead of <code>setEditable(false)</code> I created a dummy <code>DocumentFilter</code> that simply does nothing for its <code>insertString()</code>, <code>remove()</code>, and <code>replace()</code> methods.  But then I have to swap in a regular filter in order to programmatically populate the <code>JTextPane</code> from a file, then put back the dummy filter right before returning control to the user.</p>
  
  <p>So far this seems to work, but is there a simpler solution?  If I leave this as is, is there any sequence of keystrokes or mouse activity that could somehow allow the user to edit the text pane, given that it is technically editable as per <code>setEditable</code>?</p>