4

I have a calculator application in java swing, which is working properly with mouse click input. Now I want it to read input using keyboard button stroke. I had heard about the glass pane in java tutorial, but i need to know any other simple method to meet the requirement.

mKorbel
  • 109,107
  • 18
  • 130
  • 305
Jimshad Abdulla
  • 167
  • 1
  • 8

1 Answers1

8

KeyPadPanel is an example that uses Action and Key Bindings for numeric entry.

trashgod
  • 200,320
  • 28
  • 229
  • 974