当我在 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);
如何替换标题和文本字段的位置