Setting number of rows to be displayed for Multi line text in swt
问题 I am using following for TextArea ToolBar bar = new ToolBar(box,SWT.NONE); ToolItem item = new ToolItem(bar, SWT.SEPARATOR); Text text = new Text(bar, SWT.BORDER | SWT.MULTI); item.setWidth(width); item.setControl(text); GridData data = new GridData(); data.verticalAlignment = SWT.CENTER; data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; text.setLayoutData(data); I want to display a multi line text box, currently its accepting multi line text but showing only a