private UiProvider createUi() {
return new UiProvider() {
@Override
public void decorate(UiCanvas canvas) {
OneColumnPanel col = new OneColumnPanel();
col.setWeightX(1.0);
col.setInsets(0, 0, 20, 0);
if (message instanceof UiProvider) {
col.add((UiProvider) message);
} else if (message instanceof Component) {
col.add((Component) message);
} else {
col.add(new HtmlLabel(message.toString(), 400));
}
col.setInsets(0, 0, 0, 0);
col.add(doNotShowAgainCheck);
col.decorate(canvas);
}
@Override
public void requestFocus() {
doNotShowAgainCheck.requestFocus();