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

Chapter 2. SWT Shells > Setting the Shell Title Text

2.8. Setting the Shell Title Text

To create professional-looking windows—those that meet the user's expectations for what a window should look like on a particular platform—it's not enough to just rely upon the SWT to manage the look and feel of the window. Sure, it will have the same look and feel as other windows running on the platform, but it will still be missing certain elements that users expect to see. One of these elements is the title text, used to tell the user the subject matter of the window contents.

2.8.1. How do I do that?

Every window that opens in an application should have text in the titlebar area. Setting the text is simply a matter of calling the setText( ) method on the Shell class:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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