For my OOP class I have to make a simple calculator program in java. It was easy except for one minor thing: I want to make it so that when I press the 1 button on the keyboard, it acts as if I had used the mouse to click on the 1 JButton. Same thing with the enter key and the "=" sign. I know how to use mnemonics, and I've set it up so that if I do alt+1, it will work, but that really isn't what I want to do. I've looked all over the place and haven't been able to find anything.