Rather than making all these messy local variables, why not just call Toolkit.setMenuMnemonics(this)?