title: java swing label with html tag - white spaces disappearing
body: <p>I am trying to color one character in the string, but when i do so most of the whitespaces dissapear. Why does that happen and is there any solution?</p>
  
  <pre><code>map[9]  =       "#                                     #        ####     #";
  map[10] =       "#                                     #        #        #";
  map[11] = "&lt;html&gt;#                                     #        #&lt;font color=YELLOW&gt;.&lt;/font&gt;       #&lt;/hmtl&gt;";
  map[12] =       "#   ###################################        #        #";
  map[13] =       "#   #                                 #        ####     #";
  </code></pre>
  
  <p>I am assigning the strings to the array and later set each string to its own JLabel</p>
  
  <p>I already tried putting in unicode whitespace characters (normal whitespace <em>\u0020</em> and no-break whitespace <em>\u00A0</em>):
  The no-break whitespace worked but i later have to check if there is a whitespace at the playerposition and i did'nt get that to work properly with <em>\u00A0</em>.</p>
  
  <p>also, when i use the html tag for the string the (text or JLabel - i don't know which of both) is offset to the bottom a bit. How can I get it to stay in the same position as without the html tag?</p>