Label

Swing component: JLabel
Swing tutorial: How to Use Labels

Properties

Label Properties

Colors

UI Key Style Key since v2 Description
Label.foreground foreground text color if enabled
Label.disabledForeground disabledForeground text color if disabled
Label.background background if label is opaque, used to fill background

Other

UI Key Style Key since v2 Type Description
Label.font font Font font used to render text

Styling since v2

Following properties are only available via styling (not in UI defaults).

Style Key Type Description
arc since v3.5 int arc diameter of the label background corners