aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2404.java
blob: 4418cd00eca06d34e4e4a290c318c2868026ea9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.vaadin.tests.tickets;

import com.vaadin.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;

public class Ticket2404 extends LegacyApplication {

    @Override
    public void init() {

        GridLayout gl = new GridLayout(2, 2);
        gl.setSizeFull();

        Button bb = new Button("1st row on 2x2 GridLayout");
        bb.setSizeFull();
        gl.addComponent(bb, 0, 0, 1, 0);
        for (int i = 0; i < 2; i++) {
            Button b = new Button("" + i);
            gl.addComponent(b);
            b.setSizeFull();
        }

        setMainWindow(new LegacyWindow("GridLayout test", gl));

    }
}