Is it Bad Practice to use HTML Styling in Java Swing Elements?

后端 未结 2 1331
傲寒
傲寒 2021-02-13 06:24

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

2条回答
  •  你的背包
    2021-02-13 06:42

    1. No, it is not bad or good practice to use HTML syntax in the Swing JComponents

    2. Today, Java supports HTML 3.2 and there is reduced support for certain CSS attributes

    3. JTextPane and JEditorPane support adding and positioning JComponents using HTML syntax

提交回复
热议问题