/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public void setMnemonics(){ char[] mnemonic = {'F','E','S','T','H'}; for(int i=0; i<menuTitle.length; i++){ menu[i].setMnemonic(mnemonic[i]); menu[i].setBackground(darkerBlue); add(menu[i]); } }