for (int i = 1; i <= 3; ++i) {
Button button = new Button("Button #" + i);
button.setStyleName("Default");
componentSamplerColumn.add(button);
if (launchModals && i == 1) {
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
getApplicationInstance().getDefaultWindow().getContent().add(createComponentSamplerModalTestWindow());
}
});
}