Creating Vertical Rows

Although the default for RowLayout is to create horizontal rows, you can also create vertical rows when necessary.

How do I do that?

To create a vertical RowLayout, you simply pass the RowLayout constructor the SWT.VERTICAL style when you create an instance of the RowLayout class:

RowLayout rl = new RowLayout(SWT.VERTICAL);

Get SWT: A Developer's Notebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.