how to listen to an event without windows

Hi all,I would like to listen to key events, but my application doesn't use any Window component. How can I do it?Thanks
[149 byte] By [wilmort] at [2007-9-26 4:29:22]
# 1
you can use KeyListenerTo have the Listener the Component need to have the Focus()public boolean isFocusTraversable(){return true;}
jef06 at 2007-6-29 17:40:40 > top of Java-index,Desktop,Core GUI APIs...
# 2
Hi,try with the EventQueues class, for example public class MYQueue extends EventQueues{protected void dispatchEvent(AWTEvent event){.....}}
kiosci at 2007-6-29 17:40:40 > top of Java-index,Desktop,Core GUI APIs...