Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

Chapter 10. SWT Composites and Groups > Using Composite Class Styles

10.3. Using Composite Class Styles

Composite will accept several styles. The first is SWT.NO_BACKGROUND , which causes the Composite to be transparent. This is used to allow whatever is underneath the Composite, perhaps a background color or picture, to show through. SWT.NO_FOCUS can be used to prevent the Composite itself from gaining the input focus as the user tabs through controls on the window. Additionally, Composite can accept styles that apply to other widgets, such as SWT.BORDER, as illustrated by the previous example above.

As with all styles, you must experiment with different combinations until you derive the desired effect.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint