Package org.wikipediacleaner.gui.swing.action

Examples of org.wikipediacleaner.gui.swing.action.ActionClick


      }
    } else if (shortcut.getEnabled()) {
      String actionName = "action_" + shortcut.getName();
      InputMap inputMap = button.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
      inputMap.put(KeyStroke.getKeyStroke(shortcut.getKey(), shortcut.getModifiers()), actionName);
      button.getActionMap().put(actionName, new ActionClick(button));
      if (message != null) {
        int index = message.indexOf(shortcut.getKey());
        if ((index >= 0) && (index < button.getText().length())) {
          button.setDisplayedMnemonicIndex(index);
        }
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.gui.swing.action.ActionClick

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.