Package com.vaadin.tests.tickets

Source Code of com.vaadin.tests.tickets.Ticket2404

package com.vaadin.tests.tickets;

import com.vaadin.server.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));

    }
}
TOP

Related Classes of com.vaadin.tests.tickets.Ticket2404

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.