title: set background color from start to end char position
body: <p>What would be an easy way to set the background color of all characters from some start to an end position in Java.</p>
  
  <pre><code>Eg:
  red background from position D(4) to J(10)
  String alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  </code></pre>
  
  <p>Many thanks in advance.</p>
  
  <p>Edit:<br>
  Oh no, 2 '-'? Ok here is what I'm doing.</p>
  
  <pre><code>JTextArea textArea = new JTextArea("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
  textArea.setFont(new Font("Courier", Font.PLAIN, 16));
  //then I want red background from position D(4) to J(10)
  </code></pre>