TableSheet Sub Item


I am a Vaadin newbie.

How can I add sub items to TableSheet?
All examples contains only one.

For example:

 TabSheet tabsheet = new TabSheet(); 
 tabsheet.addTab(new Label("Label 1"),"First Tab",null);

Another Label(Label 2) to “First Tab”.


Instead of adding the component directly, add a layout instead. Like this:

VerticalLayout tab1Content = new VerticalLayout();
tab1Content.addComponent(new Label("Label 1"));
tab1Content.addComponent(new Label("Label 2"));

Tabsheet tabsheet = new Tabsheet();
tabsheet.addTab(tab1Content, "First Tab", null);

Thanks John,

that works well.