title: How to print underlined string
body: <p>I am trying to underlying to string or label value. I tried this code:</p>
  
  <pre><code>    JLabel label = new JLabel("Underlined Label");
      Font font = label.getFont();
      Map attributes = font.getAttributes();
      attributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);
      label.setFont(font.deriveFont(attributes));
      System.out.println(label.getText());
  </code></pre>
  
  <p>The output is Underlined Label and it didnt underline the label.
  And also I tried</p>
  
  <pre><code>    JLabel label = new JLabel("&lt;HTML&gt;&lt;U&gt;YOUR TEXT HERE&lt;/U&gt;&lt;/HTML&gt;");
      label.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
      System.out.println(label.getText());
  </code></pre>
  
  <p>This is also does not work. Can you help me please?</p>