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

Chapter 5. Display > The Active Shell, All Shells, and Focus Control

5.11. The Active Shell, All Shells, and Focus Control

Displays keep a list of all shells that were created, the active shell, and the focus control. This section discusses the methods in class Display that provide access to this state. Because the methods to set the active shell and focus control are implemented in the classes Shell and Control, they are discussed in the appropriate sections of the Controls, Composites, Groups, and Shells chapter.

5.11.1. Getting the Active Shell

At any given time, one shell at most is active on the desktop. Window systems often indicate the active shell by drawing the title bar in a different color or style. If the active shell was created on a particular display, it can be queried using the getActiveShell() method.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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