Project: SWT
Bug 49381 SWT.RIGHT does not work in Text
Reported: 2003-12-29 10:49:41 | Status: resolved fixed

RUn th efollowing snippet. The text is not Right aligned. Same is true if the style SWT.SINGLE is added. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); Text text = new Text(shell, SWT.RIGHT); text.setText("Hello"); text.setBounds(10, 10, 200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java