【发布时间】:2016-01-06 02:53:07
【问题描述】:
当我在 vaadin 中使用带有文本字段的 formlayout 时,它会在文本字段左侧的文本字段上添加标题,如果我需要在文本字段右侧的标题怎么办
FormLayout fieldsLayout = new FormLayout();
TextField userNameFld = new TextField("User Name:", true);
userNameFld.setIcon(FontAwesome.USER);
fieldsLayout.addComponent(userNameFld);
PasswordField passwordFld = new PasswordField("Password:", true);
fieldsLayout.addComponent(passwordFld);
TextField companyFld = new TextField("Company Name:", true);
fieldsLayout.addComponent(companyFld);
如何替换标题和文本字段的位置
【问题讨论】:
标签: java css web vaadin form-layout