TextBoxItem userItem = new TextBoxItem("username", "Username");
PasswordBoxItem passwordItem = new PasswordBoxItem("password", "Password");
form.setFields(nameItem, enabledItem, jndiItem, driverItem, userItem, passwordItem);
form.bind(dataSourceTable);
form.setEnabled(false); // currently not editable
Widget formWidget = form.asWidget();
layout.add(new ContentGroupLabel("Details"));