List of usage examples for javax.swing Action MNEMONIC_KEY
String MNEMONIC_KEY
To view the source code for javax.swing Action MNEMONIC_KEY.
Click Source Link
Integer
that corresponds to one of the KeyEvent
key codes. From source file:com.stefanbrenner.droplet.ui.actions.SaveFileAction.java
public SaveFileAction(final JFrame frame, final JFileChooser fileChooser, final IDropletContext dropletContext) { this(Messages.getString("SaveFileAction.title"), frame, fileChooser, dropletContext); //$NON-NLS-1$ putValue(Action.ACCELERATOR_KEY, UiUtils.getAccelerator(KeyEvent.VK_S)); putValue(Action.MNEMONIC_KEY, UiUtils.getMnemonic(Messages.getString("SaveFileAction.mnemonic"))); //$NON-NLS-1$ putValue(Action.SHORT_DESCRIPTION, Messages.getString("SaveFileAction.description")); //$NON-NLS-1$ }
From source file:it.unibas.spicygui.controllo.tree.ActionShowHideConstraints.java
public ActionShowHideConstraints() { this.executeInjection(); this.putValue(NAME, NbBundle.getMessage(Costanti.class, Costanti.ACTION_SHOW_HIDE_CONSTRAINTS)); this.putValue(SMALL_ICON, new ImageIcon(ImageUtilities.loadImage(Costanti.ICONA_SHOW_HIDE_CONSTRAINTS))); this.putValue(Action.MNEMONIC_KEY, new Integer(java.awt.event.KeyEvent.VK_H)); this.setEnabled(false); registraAzione();/*from w w w . j a v a 2 s .c om*/ }
From source file:net.pandoragames.far.ui.swing.component.listener.ActionView.java
public ActionView(ComponentRepository componentRepository, SwingConfig swingConfig) { super(swingConfig.getLocalizer().localize("label.view")); putValue(Action.MNEMONIC_KEY, swingConfig.getAccessKey("popup.label.view")); config = swingConfig;/*from w w w . j a v a 2 s . co m*/ mainFrame = componentRepository.getRootWindow(); findForm = componentRepository.getFindForm(); replaceForm = componentRepository.getReplaceForm(); form = findForm; componentRepository.getTabPane().addTabListener(TabListener.ANYTAB, this); componentRepository.getResetDispatcher().addResetable(this); super.setEnabled(false); }
From source file:ca.sfu.federation.action.CreateProjectAction.java
/** * CreateProjectAction default constructor. *//*w w w. j a va 2 s. co m*/ public CreateProjectAction() { super("New Project", null); Icon icon = ImageIconUtils.loadIconById("file-new-project-icon"); this.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke("control shift N")); this.putValue(Action.LONG_DESCRIPTION, "Create a new project"); this.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_N); this.putValue(Action.SHORT_DESCRIPTION, "Create a new project"); this.putValue(Action.SMALL_ICON, icon); }
From source file:it.unibas.spicygui.controllo.tree.ActionShowHideJoinConditions.java
public ActionShowHideJoinConditions() { this.executeInjection(); this.putValue(NAME, NbBundle.getMessage(Costanti.class, Costanti.ACTION_SHOW_HIDE_JOIN_CONDITIONS)); this.putValue(SMALL_ICON, new ImageIcon(ImageUtilities.loadImage(Costanti.ICONA_SHOW_HIDE_JOIN_CONDITIONS))); this.putValue(Action.MNEMONIC_KEY, new Integer(java.awt.event.KeyEvent.VK_J)); this.setEnabled(false); registraAzione();// ww w.ja v a 2 s . c o m }
From source file:MainClass.java
public ShowAction(Component parentComponent) { super("About"); putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A)); putValue(Action.SMALL_ICON, MetalIconFactory.getFileChooserHomeFolderIcon()); this.parentComponent = parentComponent; }
From source file:com.stefanbrenner.droplet.ui.actions.OpenFileAction.java
protected OpenFileAction(final JFrame frame, final JFileChooser fileChooser, final IDropletContext dropletContext, final String title) { super(frame, dropletContext, title); this.fileChooser = fileChooser; putValue(Action.ACCELERATOR_KEY, UiUtils.getAccelerator(KeyEvent.VK_O)); putValue(Action.MNEMONIC_KEY, UiUtils.getMnemonic(Messages.getString("OpenFileAction.mnemonic"))); //$NON-NLS-1$ putValue(Action.SHORT_DESCRIPTION, Messages.getString("OpenFileAction.description")); //$NON-NLS-1$ }
From source file:it.unibas.spicygui.controllo.tree.ActionShowHideFunctionalDependencies.java
public ActionShowHideFunctionalDependencies() { this.executeInjection(); this.putValue(NAME, NbBundle.getMessage(Costanti.class, Costanti.ACTION_SHOW_HIDE_FUNCTIONAL_DEPENDENCIES)); this.putValue(SMALL_ICON, new ImageIcon(ImageUtilities.loadImage(Costanti.ICONA_SHOW_HIDE_FUNCTIONAL_DEPENDENCIES))); this.putValue(Action.MNEMONIC_KEY, new Integer(java.awt.event.KeyEvent.VK_F)); this.setEnabled(false); registraAzione();//from w w w. j a va 2 s .c o m }
From source file:com.sshtools.sshterm.FullScreenAction.java
public FullScreenAction(SshToolsApplication application, SshToolsApplicationContainer container) { this.application = application; this.container = container; putValue(Action.NAME, NAME_FULL_SCREEN); putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_FULL_SCREEN)); putValue(LARGE_ICON, getIcon(LARGE_ICON_FULL_SCREEN)); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.ALT_MASK)); putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_FULL_SCREEN); putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_FULL_SCREEN); putValue(Action.MNEMONIC_KEY, new Integer(MNEMONIC_KEY_FULL_SCREEN)); putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_FULL_SCREEN); putValue(StandardAction.ON_MENUBAR, new Boolean(true)); putValue(StandardAction.MENU_NAME, "View"); putValue(StandardAction.MENU_ITEM_GROUP, new Integer(20)); putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(20)); putValue(StandardAction.ON_TOOLBAR, new Boolean(true)); putValue(StandardAction.TOOLBAR_GROUP, new Integer(5)); putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(30)); }
From source file:com.sshtools.powervnc.VncFullScreenAction.java
public VncFullScreenAction(SshToolsApplication application, SshToolsApplicationContainer container) { this.application = application; this.container = container; putValue(Action.NAME, NAME_FULL_SCREEN); putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_FULL_SCREEN)); putValue(LARGE_ICON, getIcon(LARGE_ICON_FULL_SCREEN)); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.ALT_MASK)); putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_FULL_SCREEN); putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_FULL_SCREEN); putValue(Action.MNEMONIC_KEY, new Integer(MNEMONIC_KEY_FULL_SCREEN)); putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_FULL_SCREEN); putValue(StandardAction.ON_MENUBAR, new Boolean(true)); putValue(StandardAction.MENU_NAME, "View"); putValue(StandardAction.MENU_ITEM_GROUP, new Integer(20)); putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(20)); putValue(StandardAction.ON_TOOLBAR, new Boolean(true)); putValue(StandardAction.TOOLBAR_GROUP, new Integer(5)); putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(30)); }