Chapter 6. Layouts

 

 

We’ve used layouts throughout the course of this book. Now that you have a firm grasp of widgets and controls, we’ll delve into the complexities of how to use layouts to arrange widgets into a pleasant interface.

Layouts are associated with a composite and help organize the controls within it. One way to think about the process is to imagine each widget as a book and the layout as shelving. You can stack books up on the shelf or lay them side by side in a horizontal row. Layouts can consist of partitions to separate the books or new layers to hold them more efficiently. Unlike real-world shelving, SWT layouts are dynamic: ...

Get SWT/JFace in Action 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.