This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I know to use the setMnemonic I type button.setMnemonic('B'); but what if I have have an array of buttons labeled 1 thru 9. How can I use setMnemonic to give each of them a numbered hot key (1 - 9) without having to set each button individually.