It is considered bad practice to style Swing elements using HTML?
As an example, if I want to make a label bigger and red just once, I have two options:
Either u
No, it is not bad or good practice to use HTML syntax in the Swing JComponents
Today, Java supports HTML 3.2 and there is reduced support for certain CSS attributes
JTextPane and JEditorPane support adding and positioning JComponents using HTML syntax
Using <font> is bad even in html. And using objects to customize font color, size etc is lot of work in big applications.
Fortunately, javaFX 2 is out. With it you can use CSS to deal with these kinds of things : http://www.oracle.com/technetwork/java/javafx/documentation/index.html