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

Chapter 7. SWT Lists > Adding Scrollbars to a List

7.10. Adding Scrollbars to a List

Scrollbars are necessary when the list is longer than the space available to view all the items. This is often the case, given that there is almost never enough room in a window for all interface elements. Scrollbars are added as a style attribute to the list at the time it is created.

7.10.1. How do I do that?

As with Text widgets, there are two scrollbar styles—SWT.V_SCROLL and SWT.H_SCROLL. For proper interface design, the scrollbar type you want to use most often is SWT.V_SCROLL:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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