List of usage examples for org.eclipse.swt.custom StyledText getWordWrap
public boolean getWordWrap()
From source file:StyledTextWordWrap.java
public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); StyledText text1 = new StyledText(shell, SWT.V_SCROLL | SWT.BORDER); text1.setWordWrap(!text1.getWordWrap()); text1.setBounds(10, 10, 100, 100);/*from ww w.j a v a 2s.c om*/ shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); }