setTheme("test");
final Window mainWindow = new Window("Myproject Application");
setMainWindow(mainWindow);
mainWindow.setSizeUndefined();
VerticalLayout test = new VerticalLayout();
test.addStyleName("simp");
test.addComponent(new Label("123"));
mainWindow.addComponent(test);
1 How do I remove the margin or set margin to 0 ?
2 Is there any way to display VerticalLayout in the middle-center of the window ?
3 The right side of border is missing, how to solve ?
Due to size calculations, you are not able to use CSS border, spacing or marging in core Vaadin layouts. To add border, wrap your layout inside a Panel, use CssLayout or use layout add-ons from Vaadin Directory.