I've read the article Understand SWT Layout , but I cannot find a way to put several buttons in a container in right-to-left way.
How can I do this?
Right to left can be achieved through SWT.RIGHT_TO_LEFT flag passed to your container element. For example if you apply a RowLayout to a Composite, create Composite this way:
c = new Composite(shell, SWT.RIGHT_TO_LEFT);
Note that RTL is only implemented in Windows and Linux. Mac support is too limited (is only widget-level, not container-level).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.