/** * Creates the new scrolled text instance in the provided parent * * @param parent * the parent composite * @param style * the style to pass to the scrolled composite * @param createFormText * if <code>true</code>, enclosing form text instance will be * created in this constructor. */ public ScrolledFormText(Composite parent, int style, boolean createFormText) { super(parent, style); if (createFormText) setFormText(new FormText(this, SWT.NULL)); } /**
/** * Creates the new scrolled text instance in the provided parent * * @param parent * the parent composite * @param style * the style to pass to the scrolled composite * @param createFormText * if <code>true</code>, enclosing form text instance will be * created in this constructor. */ public ScrolledFormText(Composite parent, int style, boolean createFormText) { super(parent, style); if (createFormText) setFormText(new FormText(this, SWT.NULL)); } /**
formText.setFormText(ftext); formText.setExpandHorizontal(true); formText.setExpandVertical(true);