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

Chapter 7. SWT Lists > Determining the Selected Item with Multiple Selections

7.7. Determining the Selected Item with Multiple Selections

More work is required when you deal with a multiple selection list. While you can still use getSelection( ) to return a string array populated with all the selected items, you must perform more processing to interact with any given single item.

7.7.1. How do I do that?

Example 7-3 demonstrates how to deal with multiple selected items returned from a call to getSelection().


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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