margin
Sets the space a component keeps between its border and its content. Applies to everything built on a button, and to text components.
This is the space inside the border; to put space outside it, size the component or space it in its container. Removing the modifier restores the space the look and feel had chosen.
It is the component's default border that turns this into space, so a chain that also declares a border leaves the margin to that border - one built by lineBorder or emptyBorder ignores it.
Return
this chain with the margin declared on it.
Parameters
margin
how many pixels each side keeps; all four at zero pulls the content flush with the border.