/** Install actions the property sheet will need */ private void initActions() { Action invokePopupAction = new MutableAction(MutableAction.INVOKE_POPUP, this); table.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_MASK), ACTION_INVOKE_POPUP); table.getActionMap().put(ACTION_INVOKE_POPUP, invokePopupAction); getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_MASK), ACTION_INVOKE_POPUP ); getActionMap().put(ACTION_INVOKE_POPUP, invokePopupAction); getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), ACTION_INVOKE_HELP ); getActionMap().put(ACTION_INVOKE_HELP, helpAction); }
/** Install actions the property sheet will need */ private void initActions() { Action invokePopupAction = new MutableAction (MutableAction.INVOKE_POPUP, this); table.getInputMap().put( KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_MASK), ACTION_INVOKE_POPUP); table.getActionMap().put(ACTION_INVOKE_POPUP, invokePopupAction); getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_MASK), ACTION_INVOKE_POPUP); getActionMap().put(ACTION_INVOKE_POPUP, invokePopupAction); getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), ACTION_INVOKE_HELP); getActionMap().put(ACTION_INVOKE_HELP, helpAction); }
/** Install actions the property sheet will need */ private void initActions() { Action invokePopupAction = new MutableAction (MutableAction.INVOKE_POPUP, this); table.getInputMap().put( KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_MASK), ACTION_INVOKE_POPUP); table.getActionMap().put(ACTION_INVOKE_POPUP, invokePopupAction); getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_F10, KeyEvent.SHIFT_MASK), ACTION_INVOKE_POPUP); getActionMap().put(ACTION_INVOKE_POPUP, invokePopupAction); getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), ACTION_INVOKE_HELP); getActionMap().put(ACTION_INVOKE_HELP, helpAction); }
edClassAction = new EditorClassAction(); InputMap imp = getInputMap(); InputMap impAncestor = getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am = getActionMap();
edClassAction = new EditorClassAction(); InputMap imp = getInputMap(); InputMap impAncestor = getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am = getActionMap();
edClassAction = new EditorClassAction(); InputMap imp = getInputMap(); InputMap impAncestor = getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ActionMap am = getActionMap(); KeyStroke ks = KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.CTRL_MASK);