Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Layout with menu + some static & switchable content

bob block
6 years ago Aug 28, 2016 12:13pm
Alejandro Duarte
6 years ago Aug 29, 2016 9:45am


One way to do that is by wrapping all the components on the right side in a Panel:

public class ValoMenuLayout extends HorizontalLayout {
    public ValoMenuLayout() {
        Panel rightPanel = new Panel(ver);

        addComponents(menuArea, rightPanel);
        setExpandRatio(rightPanel, 1);

bob block
6 years ago Aug 29, 2016 5:07pm