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

Chapter 12. SWT Tables > Allowing Multiple-Row Selection

12.3. Allowing Multiple-Row Selection

The Table default is to allow only one row to be selected at a time. This is equivalent to a setting of SWT.SINGLE. To allow more than one row to be selected, you must use the SWT.MULTI style.

12.3.1. How do I do that?

To allow for multiple selection of rows, add SWT.MULTI to the styles list passed to the Table constructor:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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