minuit

OtpInputComponent

A short code typed into one box per character.

Java

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

Java
add(new OtpInputComponent(at(new Box("code", 10, 10, 120, 18)), 6, code -> check(code)).groupEvery(3));

Typing

OtpInputComponent, typing