title: Swing JLabel - strike through HTML text
body: <p>I am having problems adding a HTML strike-through tag to a string of text in Java.</p>
  
  <p>EDIT: I have posted the entire code and I am using Windows 7, Java 8 and Swing.</p>
  
  <pre><code>JLabel LocalSelectorLabel = new JLabel("&lt;html&gt;&lt;strike&gt;Text Here&lt;/strike&gt;&lt;html&gt;");
  LocalSelectorLabel.setBounds(12, 50, 55, 16);
  LocalTabPanel.add(LocalSelectorLabel);
  </code></pre>
  
  <p>I have tried the tags: <em>s</em>, <em>del</em> and <em>strike</em> but all of them just give me underlined text.
  I have looked around for other tags that might work but I haven't found anything.</p>
  
  <p>EDIT 2: This works for me, thanks:</p>
  
  <pre><code>new JLabel("&lt;html&gt;&lt;body&gt;&lt;span style='text-decoration: line-through;'&gt;Text Here&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;");
  </code></pre>
  
  <p>EDIT 3: Now this is interesting. I ran the code on a different computer and that one displays  as strike-through and  as underline as expected while the computer I used to ask this question did not.
  I see now why I didn't find anything when I searched for a solution.</p>