aspose file tools
The moose likes Swing / AWT / SWT and the fly likes controlling the buttons functions  in a page using keyboard itself Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "controlling the buttons functions  in a page using keyboard itself" Watch "controlling the buttons functions  in a page using keyboard itself" New topic
Author

controlling the buttons functions in a page using keyboard itself

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
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
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8434

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


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: controlling the buttons functions in a page using keyboard itself
 
Similar Threads
can multiple submit buttons work in STRUTS?
NX:Do I have to use icon?
Generating actions for submit buttons based on button
How to prevent to click multi submit button?
Passing value with two buttons