That's correct - a descendant of the window must be focused in order for the window to receive any events.
On Mar 3, 2011, at 3:36 PM, Bill van Melle wrote: > On Thu, Mar 3, 2011 at 4:41 AM, Greg Brown <[email protected]> wrote: > Like other containers, windows will receive key events sent to their > descendants if the events are not consumed. > > My experience is otherwise -- the keyTyped method on my Window's > ComponentKeyListener doesn't fire unless the user has done something in the > window to cause there to be a focusable element, e.g., ticked a checkbox. > I'll see if I can construct a simple example.
