void (JComponent component) { @NlsSafe String actionName = "FCB_PAGE_DOWN"; Action action = new AbstractAction(actionName) { private static final long serialVersionUID = -1187830005921916553L; @Override public void actionPerformed(ActionEvent e) { // without moving the focus, move down one page on the popup // menu, probably jumping to choices list if (popup.isVisible()) { boolean focusPopup = popup.isPopupFocused(); popup.selectDownPage(); popup.setPopupFocused(focusPopup); } else { showChoices(); } } }; component.getActionMap().put(actionName, action); component.getInputMap(JComponent.WHEN_FOCUSED) .put(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), actionName); }