minuit

PanelComponent

The surface of a screen. It holds your components and passes them the input.

Java

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

Java
public class SettingsPanel extends PanelComponent {
    public SettingsPanel(Theme theme, Words words, int left, int top) {
        super(theme, words, left, top);
        add(new ToggleComponent(at(new Box("coords", 10, 10, 160, 12)), "Show coordinates", true, on -> { }));
    }

    @Override public int width() { return 180; }
    @Override public int height() { return 80; }
}

Sections

PanelComponent, sections