• Post Reply Bookmark Topic Watch Topic
  • New Topic

controlling the buttons functions in a page using keyboard itself  RSS feed

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having 12 swing buttons in my page.I have to control all the buttons functions using f1 to f12 function keys using swing.is it possible to do?if so,pls help me how to do?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by preethi Ayyappan:
I am having 12 swing buttons in my page.I have to control all the buttons functions using f1 to f12 function keys using swing.is it possible to do?if so,pls help me how to do?


Take a look at setMnemonic and setAccelerator in the API docs
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!