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

Chapter 8. The SWT Combo > Programmatically Selecting an Item

8.5. Programmatically Selecting an Item

As with List, it's useful sometimes to programmatically cause an item in a Combo to be selected without user interaction. Suppose, for example, you want the window to open with a default item already selected, as in Figure 8-4. In that case, you need to force the selection to the proper item.

Figure 8-4. Opening a window with a selected item



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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