我试图创建一个水平布局列表:
final VerticalLayout layoutVert = new VerticalLayout();
final HorizontalLayout layout2 = new HorizontalLayout();
final HorizontalLayout layout3 = new HorizontalLayout();
final TextField text1 = new TextField("text1");
text1.setValue("some data");
final TextField text2 = new TextField("text2");
text2.setValue("'some data'");
final TextField text3 = new TextField("text3");
text3.setValue("some data");
final TextField text11 = new TextField("text1.1");
text11.setValue("some data line 2");
final TextField text22 = new TextField("text2.2");
text22.setValue("'some data line 2'");
final TextField text33 = new TextField("text3.3");
text33.setValue("some data line 2");
layout2.addComponents(text1,text2,text3);
layout3.addComponents(text11,text22,text33);
layoutVert.addComponents(layout2,layout3);
setContent(layoutVert);
但是在页面上我只看到text1, text2, text3