Example usage for com.vaadin.flow.component.html Label Label

List of usage examples for com.vaadin.flow.component.html Label Label

Introduction

In this page you can find the example usage for com.vaadin.flow.component.html Label Label.

Prototype

public Label(String text) 

Source Link

Document

Creates a new label with the given text content.

Usage

From source file:com.superbiz.servlet.vaadin.HelloVaadinV10.java

License:Apache License

public HelloVaadinV10() {
    final VerticalLayout layout = new VerticalLayout();
    layout.add(new Button("click me", event -> layout.add(new Label("clicked again"))));
    //set the main Component
    getContent().add(layout);//from w  ww . j  a va  2 s.c o m

}