Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: From Frame to Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: From Frame to Window



I ran into this a while ago. You need to make sure the parent Frame of the Window is on screen (do a setVisible(true)) for the Window to receive key events.

At 6:21 PM +0100 8/26/01, aNt wrote:
Hello all.

I have been making a nice looking application that in the end was going to
be in a Window. But for development everything has been done in a Frame
(simpler to move all the debuggers around). The Frame contains 2 Canvas's.
Them Canvas's have KeyListeners attached to them. When I change the Frame to
a Window they no longer pick up key events. Can someone tell me why ? Is
there any way around this problem ?

Any help would be cool..

Tops

aNt
_______________________________________________
java-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/java-dev

--
Bill Tschumy
Otherwise -- Austin, TX
email@hidden


References: 
 >From Frame to Window (From: aNt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.