Package-level declarations
Functions
A Button driven by a raw ActionListener instead of an onClick lambda.
A CheckBox driven by a raw ActionListener instead of an onCheckedChange lambda. The actionListener is attached as-is and removed on the same instance; pass a stable instance (e.g. remember {}) to avoid churn.
A JCheckBox, a labeled box the user turns on and off. The box shows whatever checked holds, and every toggle the user makes is reported through onCheckedChange. Boxes are independent of one another, so any number of them can be checked at once.
A RadioButton driven by a raw ActionListener instead of an onSelectedChange lambda. The actionListener is attached as-is and removed on the same instance; pass a stable instance (e.g. remember {}) to avoid churn.
A JRadioButton, a labeled button showing whether it is chosen. The button shows whatever selected holds, and every activation the user makes is reported through onSelectedChange. Standing alone it clears itself on a second click; making several buttons one choice takes a ButtonGroup. buttonGroup enrolls a button in one, and RadioGroup declares a whole choice.
A ToggleButton driven by a raw ActionListener instead of an onSelectedChange lambda. The listener is attached as-is and removed on the same instance; pass a stable instance (e.g. remember {}) to avoid churn.
A JToggleButton, a two-state button that stays in until clicked again.