JLabel With HTML Containing "<" And ">" Characters
From time to time I use HTML in JLabels in Java Swing. Lastly I've came across something a little bit, for me, confusing... My code: public static void main(String[] args) {
Solution 1:
The JLabel implementation assumes a raw < was part of an invalid opening tag for an html element, and it drops it. You can use < or ".
Solution 2:
Are < and > the only correct options?
As per knowledge you are right.These two are universal accepted.
< means Less than .
> means greater than.
Post a Comment for "JLabel With HTML Containing "<" And ">" Characters"