final Form<Void> form = new Form<Void>("form");
add(form);
// Simple button
Button simpleButton = new Button("simpleButton");
simpleButton.add(new ButtonBehavior()
.setIcons(UiIcon.HOME, null)
.setLabel("Simple button")
);
form.add(simpleButton);
// Button without text
Button buttonWithoutText = new Button("buttonWithoutText");
buttonWithoutText.add(new ButtonBehavior()
.setIcons(UiIcon.HOME, null)
.setText(false)
);
form.add(buttonWithoutText);