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

Chapter 7. SWT Lists > Determining the Selected Items

7.6. Determining the Selected Items

As you can see, adding a list to a window and populating it with items is a fairly simple exercise, requiring mastery of only a few simple methods. Most of the methods of the List class deal with interacting with the list and its items in some meaningful fashion. The interaction that we will almost always need to perform is to obtain the item or items that the user has selected from the list.


Note:

This is what lists are all about, after all is said and done.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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