lineBorder

fun SwingModifier.lineBorder(color: Color, thickness: Int = 1): SwingModifier

Sets a line border thickness pixels wide in color. The border is rebuilt only when color or thickness changes, so a chain that recomposes often leaves the component's border alone. See border for the one border a chain declares.

Return

this chain with the line border declared on it.

Parameters

color

the color of the line drawn just inside the component's edges.

thickness

how many pixels the line takes from each side, 1 by default.

See also