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

Chapter 10. SWT Composites and Groups > Using the TextPaneComposite Class on a ...

10.2. Using the TextPaneComposite Class on a Shell

Composite objects themselves cannot be drawn directly on the display, but must be placed within the confines of a Shell or Dialog, the two classes that can be drawn directly on the display.

10.2.1. How do I do that?

Create an instance of the TextPaneComposite class, passing it a reference to the Shell instance that serves as its container. Example 10-2 demonstrates how to use TextPaneComposite on a Shell.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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