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

Chapter 7. SWT Lists > Causing an Item to Appear Selected

7.8. Causing an Item to Appear Selected

The List class also provides methods that enable you to cause an item or items to become selected without user interaction with the list.

7.8.1. How do I do that?

You can use two methods when you need to programmatically select an item before the user selects items using a mouse click. To cause an item at a specified index position to become selected, use the select( ) method:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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