How to draw an horizontal form like the one on the picture?
thanks
thanks
public static void testHorizontalForm(){ DynamicForm f = new DynamicForm(); f.setNumCols(5); TextItem input1 = new TextItem(); input1.setTitle("Name"); input1.setTitleOrientation(TitleOrientation.TOP); TextItem input2 = new TextItem(); input2.setTitle("Address"); input2.setTitleOrientation(TitleOrientation.TOP); TextItem input3 = new TextItem(); input3.setTitle("Phone"); input3.setTitleOrientation(TitleOrientation.TOP); TextItem input4 = new TextItem(); input4.setTitle("Email"); input4.setTitleOrientation(TitleOrientation.TOP); TextItem input5 = new TextItem(); input5.setTitle("Customer code"); input5.setTitleOrientation(TitleOrientation.TOP); ButtonItem btnTest = new ButtonItem(); btnTest.setTitle("TEST"); btnTest.setStartRow(true); f.setItems(input1,input2,input3,input4,input5,btnTest); RootPanel.get("container").add(f); }
Comment