How do you reset the mouselistener, or the keyboardlistener for that matter, so that you can ignore all the input up till the point you want to read in from it?
removeXXXXXXListener
Or you could use a boolean inside the listener methods that you turn to true when you want to listen.
Many thanks. Got it working.