rowMain = new Row();
rowMain.setAlignment(Alignment.ALIGN_CENTER);
Column colLeft = new Column();
ResourceImageReference imgGrayDonkey = new ResourceImageReference(Styles.IMAGE_PATH + "openjbs_logo_text.png");
Label lbGrayDonkey = new Label(imgGrayDonkey);
//rowMain.add(lbGrayDonkey);
colLeft.add(lbGrayDonkey);
Row rowVersion = new Row();
rowVersion.setAlignment(Alignment.ALIGN_RIGHT);
rowVersion.add(new Label("Version 0.91 Beta"));
colLeft.add(rowVersion);
rowMain.add(colLeft);
ResourceImageReference imgLineLogin = new ResourceImageReference(Styles.IMAGE_PATH + "line_login.png");
Label lbLineLogin = new Label(imgLineLogin);
rowMain.add(lbLineLogin);
JbsGrid grdMain = new JbsGrid(2);
grdMain.setInsets(new Insets(5, 5));
//Adjust the JbsGrid to have the same width as the image on the left side:
grdMain.setColumnWidth(0, new JbsExtent(100));
grdMain.setColumnWidth(1, new JbsExtent(300));
grdMain.add(new Label(JbsL10N.getString("JbsUser.userName")));
GridLayoutData JbsGridLayout = new GridLayoutData();
boolean demoUserExists = this.hasDemoUser();
if (demoUserExists)
txUserName.setText("demo");
grdMain.add(txUserName);
grdMain.add(new Label(JbsL10N.getString("JbsUser.password")));
if (demoUserExists)
txPassword.setText("demo");
grdMain.add(txPassword);
grdMain.add(btnLogin);