blob: 4a1042709d984328abe1bacc912649c6a61373fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.vaadin.demo;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window;
@SuppressWarnings("serial")
public class HelloWorld extends com.vaadin.Application {
/**
* Init is invoked on application load (when a user accesses the application
* for the first time).
*/
@Override
public void init() {
// Main window is the primary browser window
final Window main = new Window("Hello window");
setMainWindow(main);
// "Hello world" text is added to window as a Label component
main.addComponent(new Label("Hello World!"));
}
}
|