Esempio n. 1
0
 /**
  * Create the menus that are used by this frame. It is essential that _createGraphPane() be called
  * before this.
  */
 protected void _addMenus() {
   super._addMenus();
   _caseMenu = new JMenu("Case");
   _caseMenu.setMnemonic(KeyEvent.VK_C);
   _menubar.add(_caseMenu);
   GUIUtilities.addHotKey(_getRightComponent(), _addCaseAction);
   GUIUtilities.addMenuItem(_caseMenu, _addCaseAction);
   GUIUtilities.addHotKey(_getRightComponent(), _removeCaseAction);
   GUIUtilities.addMenuItem(_caseMenu, _removeCaseAction);
 }
Esempio n. 2
0
  /** Create the menus that are used by this frame. */
  protected void _addMenus() {
    super._addMenus();

    _viewMenu.addSeparator();
    GUIUtilities.addHotKey(_getRightComponent(), _fullScreenAction);
    GUIUtilities.addMenuItem(_viewMenu, _fullScreenAction);
  }
Esempio n. 3
0
 /**
  * Add a quick keystroke on the given pane for the given action. The keystroke that is added is
  * given in the ACCELERATOR_KEY property that has been set in the action. If the ACCELERATOR_KEY
  * property has not been set, then do not add a hotkey.
  */
 public static void addHotKey(JComponent pane, Action action) {
   addHotKey(pane, action, null);
 }