What does Components requestFocus method do?
Ans : Invoking requestFocus on a component requests that the component be made the primary target of non-mouse input events. A central task for the AWT is to direct events to specific components. Many events, such as mouse clicks, intrinsically select their targets. Keyboard events, however, are not inherently directed at any component on the screen. This is where focus comes in: focus designates which component will receive non-mouse input events. A component uses the requestFocus method to attempt to obtain the focus. If the attempt succeeds, the component will be sent a gotFocus event.
Related Questions
- Where can I find information on the Component Additive Method (CAM) for calculating and demonstrating assembly fire endurance?
- Why can-t I shutdown every workstation in my network using a Shutdown method in the component TNTServerInfo?
- What forms are needed if I use the Envelope Component compliance method?