Html hr color
I am trying to draw a horizontal line in a JLabel using HTML's HR (horizontal rule) element. It works fine, but the color attribute (COLOR=BLUE) doesn't seem to work.
Here's the line of HTML:
<hr noshade size=2 width=50 color=blue align=center>
Any ideas why this doesn't work with respect to color? All the other attributes work just fine.
Is there a better way in Java to draw a horizontal line in a JLabel?
It's an old issue. One possible solution is given here
Swing - Problem with HTML in a JLabel
Note: Please don't post in that old thread, it's been dead for 3 years.
Incidentally, I see the align attribute doesn't work either.