SWT RowLayout from right to left?

I read the article Understand SWT Layout , but I can’t find a way to put several buttons in a container in the right - the left path.

How can i do this?

+4
source share
1 answer

Right to left can be reached via the SWT.RIGHT_TO_LEFT flag passed to your container element. For example, if you apply RowLayout to a Composite, create a Composite as follows:

c = new Composite(shell, SWT.RIGHT_TO_LEFT); 

Please note that RTL is only available on Windows and Linux. Mac support is too limited (this is only the widget level, not the container level).

+6
source

All Articles