Any way to keep listening even if focus is lost ??

S

Spendius

Hi,
Do you think there's a possibility to keep listening for keyboard
events even if the component on which you've added the listener
looses its focus ?

Thanks.
Regards,
Sp
 
E

Evans

Hi,
Do you think there's a possibility to keep listening for keyboard
events even if the component on which you've added the listener
looses its focus ?

Thanks.
Regards,
Sp

Do you think it's advisable to keep learning Java even when every one
has moved on to Python?
 
R

RedGrittyBrick

Spendius said:
Hi,
Do you think there's a possibility to keep listening for keyboard
events even if the component on which you've added the listener
looses its focus ?

"A KeyEventDispatcher is a lightweight interface that allows client code
to pre-listen to all KeyEvents in a particular context.

Instances of classes that implement the interface and are registered
with the current KeyboardFocusManager will receive KeyEvents before they
are dispatched to the focus owner, allowing the KeyEventDispatcher to
retarget the event, consume it, dispatch it itself, or make other changes. "

http://www.developer.com/java/other/article.php/3452231
 
D

Daniel Pitts

Evans said:
Do you think it's advisable to keep learning Java even when every one
has moved on to Python?
I smell flamebait.

You're discussion might be better suited for comp.lang.java.advocacy.
I've cross-posted this to clja, and set f-up to clja.
 
S

Spendius

Do you think it's advisable to keep learning Java even when
every one has moved on to Python?

I know it's feasible in Python indeed, but er... I need to
be able to implement it in Java.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,248
Latest member
MagdalenaB

Latest Threads

Top