Button b = new Button("Open", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
Window centered = new Window("A window", new Label(
"Centered window"));
centered.center();
getMainWindow().addWindow(centered);
}
});
layout.addComponent(b, 0, 0);
b = new Button("Open", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
Window centered = new Window("A window", new Label(
"Centered window"));
centered.center();
getMainWindow().addWindow(centered);
}
});
layout.addComponent(b, 1, 1);
b = new Button("Open", new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
Window centered = new Window("A window", new Label(
"Centered window"));
centered.center();
getMainWindow().addWindow(centered);
}
});