Summary
JLabelなどのHtmlレンダリングを無効化して、タグ文字列をそのまま表示します。
Screenshot

Advertisement
Source Code Examples
label.putClientProperty("html.disable", Boolean.TRUE);
label.setText("<html><font color=red>Html Test</font></html>");
label.setToolTipText("<html><html><font color=red>Html Test</font></html></html>");
View in GitHub: Java, KotlinDescription
上記のサンプルでは、JLabelなどにputClientProperty("html.disable", Boolean.TRUE)を設定することで、<html>タグとしてレンダリングせずにそのまま文字列として表示しています。
JLabelにputClientProperty("html.disable", Boolean.TRUE)を設定しても、そのJLabelのJToolTipには反映されない<html>タグの中で文字実体参照を使用して回避