emptyBorder

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

Return

this chain with the empty border declared on it.

Parameters

all

the space 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 of top, left, bottom and right - 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 values change. See border for the one border a chain declares.

Return

this chain with the empty border declared on it.

Parameters

top

the space reserved above the content.

left

the space reserved to the left of the content.

bottom

the space reserved below the content.

right

the space 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 space to reserve on each side, read out of the object as the chain is built.

See also