public CommentSection(int width, int height) { getFormLayout().setLabelAlign(LabelAlign.TOP); commentField = new TextArea(); commentField.setName("comments"); commentField.setFieldLabel(I18N.CONSTANTS.comments()); if (width > 0) { getFormLayout().setDefaultWidth(width); commentField.setWidth(width); } if (height > 0) { commentField.setHeight(height); } add(commentField); }