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

Chapter 11. SWT Tabbed Folders > Setting a Default Tab

11.5. Setting a Default Tab

Since the SWT does a good job of hiding the inner workings of the tab folder and tab pages, handling the task of making controls visible and invisible as the user navigates the tabs, you won't frequently use many methods on TabFolder. The ones that are useful deal with determining which tab page is selected. As you might guess, there are methods that enable you to force a tab page to the front without the user having clicked the tab, while other methods that enable you to determine which page currently has the focus.

11.5.1. How do I do that?

To force a tab to the front, add the following:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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