Text text; GridData gridData = new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL ); gridData.horizontalSpan = column;  if ( row > 1 ) { text = new Text( container, SWT.BORDER | SWT.MULTI | SWT.WRAP ); gridData.heightHint = row * 20; } else text = new Text( container, SWT.BORDER | SWT.SINGLE ); text.setLayoutData( gridData ); return text;
return createText(container, column, row, SWT.BORDER);
	private Text createText( Composite container, int column, int row )	{		Text text;		GridData gridData = new GridData( GridData.FILL_HORIZONTAL				| GridData.GRAB_HORIZONTAL );		gridData.horizontalSpan = column;		if ( row > 1 )		{			text = new Text( container, SWT.BORDER | SWT.MULTI | SWT.WRAP );			gridData.heightHint = row * 20;		}		else			text = new Text( container, SWT.BORDER | SWT.SINGLE );		text.setLayoutData( gridData );		return text;	}