Package com.mucommander.ui.helper

Examples of com.mucommander.ui.helper.MnemonicHelper


    /**
     * Updates the buttons mnemonics. This method should be called when at least one of the button's label has changed.
     */
    public void updateMnemonics() {
        MnemonicHelper mnemonicHelper = new MnemonicHelper();
        char mnemonic;

        JButton button;
        for(int i=0; i<nbButtons; i++) {
            button = buttons[i];
            mnemonic = mnemonicHelper.getMnemonic(button);
            if(mnemonic!=0)
                button.setMnemonic(mnemonic);
        }
    }
View Full Code Here


       
        @Override
        protected void initMenuBarItems() {
          // Edit menu
              editMenu = new JMenu(Translator.get("text_editor.edit"));
              MnemonicHelper menuItemMnemonicHelper = new MnemonicHelper();

              copyItem = MenuToolkit.addMenuItem(editMenu, Translator.get("text_editor.copy"), menuItemMnemonicHelper, null, TextEditor.this);

              cutItem = MenuToolkit.addMenuItem(editMenu, Translator.get("text_editor.cut"), menuItemMnemonicHelper, null, TextEditor.this);
              pasteItem = MenuToolkit.addMenuItem(editMenu, Translator.get("text_editor.paste"), menuItemMnemonicHelper, null, TextEditor.this);
View Full Code Here

    }

    protected void initMenuBarItems() {
      // Edit menu
      editMenu = new JMenu(Translator.get("text_viewer.edit"));
      MnemonicHelper menuItemMnemonicHelper = new MnemonicHelper();

      copyItem = MenuToolkit.addMenuItem(editMenu, Translator.get("text_viewer.copy"), menuItemMnemonicHelper, null, this);

      selectAllItem = MenuToolkit.addMenuItem(editMenu, Translator.get("text_viewer.select_all"), menuItemMnemonicHelper, null, this);
      editMenu.addSeparator();
View Full Code Here

TOP

Related Classes of com.mucommander.ui.helper.MnemonicHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.