Project: SWT
Bug 15554 DCR - alignment in a text widget
Reported: 2002-05-08 13:00:20 | Status: resolved fixed

I am looking for a way to set the string in a text widget right aligned (e.g. for numbers). For a javax.swing.JTextField there exists a function setHorizontalAlignment( JTextField.RIGHT) - There should be something similar for org.eclipse.widgets.Text to set left / right / center alignment.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java