Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Activating a button using the key board  RSS feed

 
Stephen Silva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to activate my addition button in my calculator just after the "+" key of the key board is pressed.
Please let me know the way to achieve this.

Thanks.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Key Binding is the way to go.
http://download.oracle.com/javase/tutorial/uiswing/misc/keybinding.html
 
Stephen Silva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
I got my work done.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!