I have been trying to set up mnemonics on my buttons in a SWT window (Eclipse plugin), but unfortunately I always end up with the following cases:
- Either I use
setText("&Cancel")
: it doesn't show the mnemonics until you press the "alt" button - Or I use
setText("&&Cancel")
, but the button looks like "&Cancel". This "double ampersand" trick was found on the Eclipse forum.
If you already faced the problem, I would be glad to read your solutions to fix this. Thanks for reading.