What is a mnemonic in java?

Jon Aird picture Jon Aird · Nov 28, 2012 · Viewed 24.9k times · Source

I can find a bunch of info talking about mnemonics but nothing about what they are. Can someone help me here?

Answer

poplitea picture poplitea · Nov 28, 2012

From swing documentation:

Mnemonics offer a way to use the keyboard to navigate the menu hierarchy, increasing the accessibility of programs.

It's the underlined letter in menus, buttons, labels, tabs etc. Pressing the ALT-key and the underlined letter on the keyboard selects that menu item.