AWT Mouse Event and Key Event

Quick question, as I’ve never understood this. Why is it that when using the awt MouseListener if you hold down a mouse button mousePressed() only fires once, where as when using awt KeyboardListener if you hold down a key keyPressed() fires once and then after a delay repeatedly fires events?

More specifically why doesn’t the mousePressed() fire multiple events when held down?

I’m guessing the KeyboardListener has key repeat enabled. If you hold any button down in a text field (any), you’ll type one letter then after a short while it’ll begin to repeat. This doesn’t happen on your mouse.

Is there a way to enable a repeat for the mouse?

Eh, just found what I was looking for…

https://community.oracle.com/thread/1293030?start=0&tstart=0

I feel like this is something you shouldn’t have to implement yourself, but meh.

Thanks!