Package com.vaadin.tests.tickets

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

package com.vaadin.tests.tickets;

import com.vaadin.server.SystemError;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;

public class Ticket1663 extends com.vaadin.server.LegacyApplication {

    @Override
    public void init() {

        LegacyWindow main = new LegacyWindow("#1663");
        setMainWindow(main);

        TextField tf = new TextField("First name");
        tf.setDescription("The first name is used for the administration user interfaces only.");
        tf.setComponentError(new SystemError(
                "You must enter only one first name."));

        main.addComponent(tf);
    }
}
TOP

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

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.