Java Swing: Do something while the key is being pressed
问题 Im using a KeyAdpater to get the events and the method addKeyListener and works fine. The problem is that when a press the key, the action ocurrs only once and not while its being pressed, after 3-4 secs holding down the key the action occurs all the time which is what I want. I'd want to know if there is good way to do the action all the time the key is being pressed from the very begining , not after 3-4 seconds holding down. I thought on the next solution, but maybe there is already an