How to dispatchEvent(KeyEvent evt) to an applet
First off, I apologize for not having an SSCCE code snippet. In the case that we do need one, I will create one :)
My question & scenario: I have an Applet that I want to send mouse and key strokes into. I studied that dispatchEvent could do the job, but it requires a KeyEvent object. I'm not sure what to place where. In the end, it can send mouse and keystrokes even when the applet's window is minimized. I also want it at the point where I can send the letter 'a' like this:
Do i need to add a actionlistener or keylistener to an applet? If so, how? Thank you very much :)
PS: I looked all over the forums, but could not find anything on this very subject.