I am using form layout to display labels and textboxes. I need to
show a list of buttons horizontally below a specific textbox. After that, my form layout continues to display more labels and textboxes.
I have a verticallayout to which I add my formlayout and then I add a horizontal layout to the formlayout. In the example below, I want to see blah1, followed by button1 and button2 in horizontal layout followed by blah2.
But I see blah1, blah2 and all the buttons in horizontal layout are displayed in the end, Please help.
verticalLayout = (VerticalLayout) getContent();
formLayout = new FormLayout();
verticalLayout.addComponent(formLayout);
form = new Form();
formLayout.addComponent(form);
form.addField("blah1", buildBlah1TextField());
HorizontalLayout horizontalLayout = new HorizontalLayout();
formLayout.addComponent(horizontalLayout);
horizontalLayout.addComponent(button1);
horizontalLayout.addComponent(button2);
form.addField("blah2", buildBlah2TextField());