minuit

RadioGroupComponent

One choice out of a few, all in view.

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
add(new RadioGroupComponent(at(new Box("mode", 10, 10, 160, 42)), List.of("Peaceful", "Normal", "Hard"), 1, this::setMode)
        .disabled(2, true, "Unlock it first"));

Choices

RadioGroupComponent, choices