コード例 #1
0
 protected JComponent createFormControl() {
   TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
   this.address = formBuilder.add("address")[1];
   formBuilder.row();
   formBuilder.add("city");
   return formBuilder.getForm();
 }
コード例 #2
0
  @Override
  protected JComponent createFormControl() {

    SwingBindingFactory bindingFactory = (SwingBindingFactory) getBindingFactory();
    TableFormBuilder formBuilder = new TableFormBuilder(bindingFactory);

    formBuilder.addSeparator("Benutzerdaten");
    formBuilder.row();

    formBuilder.add("anmeldename");
    formBuilder.row();

    formBuilder.addPasswordField("passwort");
    formBuilder.row();

    return formBuilder.getForm();
  }