I have tabSheet with tabs.
TabSheet tabsheet = new TabSheet();
tabsheet.setSizeUndefined();
tabsheet.addTab(new Label("Contents of the first tab"),"Слои");
tabsheet.addTab(table, "Tab");
tabsheet.addTab(new Label("Contents of the third tab"),"Межевые планы");
Now i want to add another component to second tab for example a horisontalLayout
HorizontalLayout lo = new HorizontalLayout();
Button newContact = new Button();
Button search = new Button();
Button share = new Button();
Button help = new Button();
lo.addComponent(newContact);
lo.addComponent(search);
lo.addComponent(share);
lo.addComponent(help);
But how to do this?
Prepare a layout:
Then add it to your tabsheet: