void () { super.configurePopup(); addPopupMenuListener(new PopupMenuListenerAdapter() { @Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { comboBox.repaint(); } }); setBorder(UIManager.getBorder("PopupMenu.border")); }