It’s usually easiest to replace the root layout of the window with getWindow().setContent(newContent).
The root layout is a VerticalLayout by default, although you can use any layout (or more exactly a component container).
It’s usually easiest to replace the root layout of the window with getWindow().setContent(newContent).
The root layout is a VerticalLayout by default, although you can use any layout (or more exactly a component container).