iconTextGap

Sets the space between a component's icon and its text. Applies to labels and to everything built on a button.

A button stops taking this from the look and feel once set, and Swing offers no way to hand it back. A label has no such latch.

Return

this chain with the icon-text gap declared on it.

Parameters

gap

the pixels between the icon and the text, on whichever side of the icon the text sits.

See also