multiple radio group give short cut key in keyboar

2019-09-07 02:39发布

I have radio many radio group in my application and each group has many radio button i want to know how it is possible to assign one key board short cut or a combination of keyboard short cut for each button for example i want to put number 1 in first group first radio button so if i select the first group and press 1 in keyboard automatically first radio button will be selected. I am doing it now by tab, when i tab i select the focus radio button but it is not good when there are so many radio button because it takes time if i tab until the last radio button. How is this possible any suggestion is accepted

1条回答
我想做一个坏孩纸
2楼-- · 2019-09-07 03:43

See AbstractButton.setMnemonic(char).

My bad..

This method is now obsolete, please use setMnemonic(int) to set the mnemonic for a button.

查看更多
登录 后发表回答