Dear Wayne,

Wayne wrote:
...
> Can someone tell me why this doesn't when I have the button. Also how
> can I get
> this to work without putting a handler on the button?
... 
I suppose this is because frame dispatches keyboard event to the lowest
component that has keyboard focus in its Component hierarchy (see
Container's processEvent() function source code). Apparently this lowest
component is your button. And your button consumes this event (call its
consume() method) and so it is not dispatched back to Frame.

I hope this will help to understand what happened. To advice the
solution for the problem, I have no enough information about the
purposes of your application.

All the Best
Pavel


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to