diff options
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java')
-rw-r--r-- | src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java b/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java index a0fe32df5d..08bfb4eb97 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/WebLayoutExample.java @@ -13,6 +13,7 @@ import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Window.CloseEvent;
+@SuppressWarnings("serial")
public class WebLayoutExample extends VerticalLayout {
Window win = new WebLayoutWindow();
@@ -52,7 +53,7 @@ public class WebLayoutExample extends VerticalLayout { HorizontalLayout main = new HorizontalLayout();
main.setMargin(true);
main.setSpacing(true);
- setLayout(main);
+ setContent(main);
// Tree to the left
Tree tree = new Tree();
|