JbsGrid grdMain = new JbsGrid(2);
grdMain.setInsets(new Insets(5, 5));
grdMain.setColumnWidth(0, new JbsExtent(300));
grdMain.add(new Label(JbsL10N.getString("JbsUser.userName")));
grdMain.add(txUserName);
grdMain.add(new Label(JbsL10N.getString("JbsUser.password")));
grdMain.add(txPassword);
grdMain.add(new Label(JbsL10N.getString("JbsUser.addInfo")));
grdMain.add(txAddInfo);
grdMain.add(new Label(JbsL10N.getString("JbsUser.mainGroup")));
grdMain.add(cbbMainGroup);
grdMain.add(new Label(JbsL10N.getString("JbsUser.groupList")));
grdMain.add(groupEditor);
if (ClientGlobals.getUser().isRoot()) { //No other person is allowed to set companies for a user
grdMain.add(new Label(JbsL10N.getString("JbsUser.companyList")));
grdMain.add(companyEditor);
}
grdMain.add(new Label(JbsL10N.getString("JbsUser.contact")));
grdMain.add(this.contactSelectField);
grdMain.add(new Label(JbsL10N.getString("JbsUser.canChangePassword")));
grdMain.add(this.cbCanChangePassword);
grdMain.add(new Label(JbsL10N.getString("JbsUser.startModule")));
grdMain.add(this.selStartModule);
cpStdData.add(grdMain);
this.add(cpStdData);
}