Announcement Announcement Module
No announcement yet.
Mnemonic set on toolbar buttons Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mnemonic set on toolbar buttons

    Hi All.

    It seems that when Spring is configuring the toolbar buttons, it is setting the mnemonic on the button, while at the same time removing the text.

    Does this make sense?

    I guess it is not so bad, but I use the Alloy Look and Feel and they attach the mnemonic at the end of the tooltip for buttons. So I now have a Save action with an accelerator of ctrl-S in a File menu. And a toolbar button with no text and a tooltip with alt-S attached to the end (Which works by the way).

    For now I got around it by doing the following

    DefaultCommandServices.instance().setToolBarButtonConfigurer( new DefaultCommandButtonConfigurer() {
                public void configure(AbstractButton button, AbstractCommand command, CommandFaceDescriptor faceDescriptor) {
                  super.configure(button, command, faceDescriptor);
    Thanks Trevor