Column layoutColumn = new Column();
layoutColumn.setCellSpacing(new Extent(10));
layoutColumn.setInsets(new Insets(10));
mainPane.add(layoutColumn);
Grid headerGrid = new Grid();
headerGrid.setInsets(new Insets(0, 2));
layoutColumn.add(headerGrid);
Label label;
label = new Label(Messages.getString("Message.PromptLabel.To"));
headerGrid.add(label);
toField = new TextField();
toField.setStyleName("Default");
toField.setWidth(new Extent(450));
headerGrid.add(toField);
label = new Label(Messages.getString("Message.PromptLabel.Cc"));
headerGrid.add(label);
ccField = new TextField();
ccField.setStyleName("Default");
ccField.setWidth(new Extent(450));
headerGrid.add(ccField);
label = new Label(Messages.getString("Message.PromptLabel.Bcc"));
headerGrid.add(label);
bccField = new TextField();
bccField.setStyleName("Default");
bccField.setWidth(new Extent(450));
headerGrid.add(bccField);
label = new Label(Messages.getString("Message.PromptLabel.Subject"));
headerGrid.add(label);
subjectField = new TextField();
subjectField.setStyleName("Default");
subjectField.setWidth(new Extent(450));
headerGrid.add(subjectField);
messageField = new TextArea();
messageField.setStyleName("Default");
messageField.setWidth(new Extent(520));
messageField.setHeight(new Extent(18, Extent.EM));