Window.toFront method moves the window to the front, thereby giving it the focus. On some operating systems, such as Microsoft Windows, the front window usually becomes the focused window. There is no foolproof way, across all platforms, to ensure that a window gains the focus. Only one component at a time in the window system can have the keyboard focus.Įxactly how a window gains the focus depends on the windowing system. These visual cues let the user know to which component any typing will relate. The window containing the component is also more prominent than other windows onscreen. For a key press to affect a component, the component must have the keyboard focus.įrom the user's point of view, the component with the keyboard focus is generally prominent with a dotted or black border, for example. Many components even those primarily operated with the mouse, such as buttons can be operated with the keyboard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |