看见csdn下载,文本域文字换行代码,居然要十分.
下面的代码就能实现,swt文本域文字换行功能.
下面是org.eclipse.swt.SWT类中WRAP字段的解释:
下面的代码就能实现,swt文本域文字换行功能.
Text text = new Text(shell,SWT.MULTI | SWT.WRAP);
下面是org.eclipse.swt.SWT类中WRAP字段的解释:
int org.eclipse.swt.SWT.WRAP = 64 [0x40]
Style constant for automatic line wrap behavior (value is 1<<6).
Used By:
Label
Text
ToolBar
Spinner