minuit

ScrollComponent

Scrolls components that do not fit their box.

Java

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

Java
ScrollComponent scroll = add(new ScrollComponent(at(new Box("rows", 12, 28, 276, 140))));
for (int i = 0; i < 12; i++) {
    scroll.add(new ButtonComponent(at(new Box("row" + i, 16, 32 + i * 18, 250, 14)), "Button " + (i + 1), () -> { }));
}

Rows

Scroll with the wheel.

ScrollComponent, rows: Scroll with the wheel.