return panel;
}
private FormPanel createGeneralPanel()
{
final FormPanel panel = new FormPanel();
panel.setFrame(false);
panel.setBodyBorder(false);
panel.setHeaderVisible(false);
panel.setButtonAlign(HorizontalAlignment.CENTER);
panel.setLayout(new FitLayout());
LayoutContainer main = new LayoutContainer();
main.setLayout(new ColumnLayout());
LayoutContainer left = new LayoutContainer();
FormLayout layout = new FormLayout();
left.setLayout(layout);
fullNameField = new TextField<String>();
fullNameField.setFieldLabel(JabberApp.getConstants().Full_Name());
left.add(fullNameField);
nickNameField = new TextField<String>();
nickNameField.setFieldLabel(JabberApp.getConstants().Nickname());
left.add(nickNameField);
birthdayField = new TextField<String>();
birthdayField.setFieldLabel(JabberApp.getConstants().Birthday());
left.add(birthdayField);
phoneField = new TextField<String>();
phoneField.setFieldLabel(JabberApp.getConstants().Phone());
left.add(phoneField);
homepageField = new TextField<String>();
homepageField.setFieldLabel(JabberApp.getConstants().Homepage());
left.add(homepageField);
emailField = new TextField<String>();
emailField.setFieldLabel(JabberApp.getConstants().E_Mail());
left.add(emailField);
LayoutContainer right = new LayoutContainer();
//layout = new FormLayout();
right.setLayout(new CenterLayout());
avatarImg = new Image("images/default_avatar.png");
avatarImg.setWidth("64px");
avatarImg.setHeight("64px");
right.add(new AdapterField(avatarImg));
main.add(left, new ColumnData(.7));
main.add(right, new ColumnData(.3));
panel.add(main);
return panel;
}