minuit

CalendarComponent

A month of days, to pick one day or a range.

Java

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

Java
add(new CalendarComponent(at(new Box("day", 10, 10, CalendarComponent.WIDTH, CalendarComponent.HEIGHT)), this::pick)
        .weekStart(DayOfWeek.MONDAY)
        .labels(words, "mymod.calendar")
        .disabled(day -> day.getDayOfWeek() == DayOfWeek.SUNDAY));

Variants

Month

CalendarComponent, month

Range

CalendarComponent, range