You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HelloWorld.java 578B

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