• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. SWT Layouts > Forcing Widgets to Span Multiple Cells

9.12. Forcing Widgets to Span Multiple Cells

It is possible to make a widget span across multiple cells of the grid, yielding rows that contain fewer widgets than other rows. Likewise, you can cause a widget to span vertically across cells in a column.

9.12.1. How do I do that?

The GridData verticalSpan and horizontalSpan settings control how many cells a widget spans. Consider the following code:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint