AlertComponent
A short message that belongs to the screen: info, success, warning or error.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
add(new AlertComponent(at(new Box("saved", 10, 10, 200, 0)), AlertComponent.Variant.SUCCESS,
words.get("mymod.saved.title"), words.get("mymod.saved.body"))
.dismissible(true)
.onDismiss(this::layout)
.fit());Variants
