intellij-randomness / com.fwdekker.randomness.ui / javax.swing.ButtonGroup / setValue

setValue

fun ButtonGroup.setValue(value: Any?): Unit

Sets the currently selected button to the button with the given action command.

If there is no button with the given action command, all buttons will be deselected. If there are multiple buttons with the given action command, any of the matching buttons may be selected.

Parameters

value - an Object of which toString returns an action command