DatePickerComponent
A field that opens a calendar to pick a date.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
DatePickerComponent when = add(new DatePickerComponent(at(new Box("when", 10, 10, 120, 16)), this)
.placeholder(words.get("mymod.pick_a_day"))
.format(day -> day.getDayOfMonth() + "/" + day.getMonthValue() + "/" + day.getYear())
.onChange(this::setDay));
when.calendar().labels(words, "mymod.calendar").today(serverDay);
// Last, so that the calendar is drawn over the rest and offered every input first.
add(when.popup());Filled
