This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
When using the KeyPressed method of the KeyKistener interface how do I make sure a key hit is recognised only once? If I hold a key down for more than a second, the listener keeps responding. I should be able to hold the key down for ten minutes and still only get one response. I know there's a keyReleased method but something tells me there's a problem with that. Can anyone help me? Thanks Paul
posted 15 years ago
Please ignore. I've found the problem and it was to do with mistakingly adding more than one listener.