public Login() { lookup(); setSizeFull(); Component loginForm = buildLoginForm(); loginForm.setSizeUndefined(); addComponent(loginForm); setComponentAlignment(loginForm, Alignment.MIDDLE_CENTER); }
private void showComponent(final Component component, final String name) { final VerticalLayout layout = new VerticalLayout(); layout.setSizeUndefined(); layout.setMargin(true); final Window window = new Window(name, layout); window.setSizeUndefined(); component.setSizeUndefined(); window.addComponent(component); getWindow().addWindow(window); }