emptyBorder

Sets an invisible border all pixels wide on every side. See emptyBorder (the four-side form).

Return

this chain with the empty border declared on it.

Parameters

all

the pixels reserved on each of the four sides, taken out of the area the content is laid out in.

See also


fun SwingModifier.emptyBorder(top: Int, left: Int, bottom: Int, right: Int): SwingModifier

Sets an invisible border occupying top, left, bottom and right pixels - the space a component keeps around itself. margin is the space a button or a text component keeps inside its border. The border is rebuilt only when those pixel counts change. See border for the one border a chain declares.

Return

this chain with the empty border declared on it.

Parameters

top

the pixels reserved above the content.

left

the pixels reserved to the left of the content.

bottom

the pixels reserved below the content.

right

the pixels reserved to the right of the content.

See also


Sets an invisible border occupying insets. See emptyBorder (the four-side form).

Return

this chain with the empty border declared on it.

Parameters

insets

the four pixel counts to reserve, read out of the object as the chain is built.

See also