我有带有标签的 tabSheet。
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"),"Межевые планы");
现在我想将另一个组件添加到第二个选项卡,例如 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);
但是如何做到这一点?