void (ActionEvent e) { // if popup is not visible, just make it visible. // if popup has not the focus, pass it the focus // else: move up! if (popup.isVisible()) { if (popup.isPopupFocused()) { popup.selectUp(false); } else { popup.setPopupFocused(true); // if still not focused, it has empty content if (!popup.isPopupFocused()) { popup.hide(); } } } else { showChoices(); } }