Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Howard Dixon   on Jul 05 In Java Category.

  
Question Answered By: Nixie Schmidt   on Jul 05

Try:
myJButton.setMnemonic('b');

This is assuming you are in swing and using JButtons of course. Probably will
work with AWT heavyweight buttons. This setMnemonic method will allow you to
hit "ALT + B" and the button  will think it got clicked.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Button with key shortcut Or get search suggestion and latest updates.


Tagged: