setButtonIgnoreMinimumSize

fun JComponent.setButtonIgnoreMinimumSize(buttonIgnoreMinimumSize: Boolean?)

Specifies whether this component or its immediate children should ignore the default (minimum) dimension for buttons. Note that RadianceButtonShaper implementations are not required to respect this call. The current implementations of the default PillButtonShaper and ClassicButtonShaper respect this setting.

Parameters

buttonIgnoreMinimumSize

If true, the component or its immediate children will ignore the default (minimum) dimension for buttons under button shapers that respect this setting. Pass null to reset to the default behavior.