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

Chapter 8. The SWT Combo > Creating a Combo List

8.1. Creating a Combo List

As with all widgets, you must add a Combo to a Shell or other container by creating an instance of the Combo class and passing it the parameters required to create the desired style effects.

8.1.1. How do I do that?

By this stage of the process of learning SWT programming, you should be proficient in the code needed to add a widget to a shell and to specify the style of the widget. For Combo, there are three basic styles—SWT.DROP_DOWN, SWT.READ_ONLY, and SWT.SIMPLE. This code, which creates, sizes, and positions a Combo, should be familiar:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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