void () { super.installListeners(); editorMouseListener = new MouseAdapter() { @Override public void mouseEntered(MouseEvent e) { setHover(Boolean.TRUE); } @Override public void mouseExited(MouseEvent e) { setHover(Boolean.FALSE); } private void setHover(Boolean value) { if (spinner.isEnabled()) { spinner.putClientProperty(HOVER_PROPERTY, value); spinner.repaint(); } } }; spinner.addMouseListener(editorMouseListener); getEditorFocusOwner(spinner).addMouseListener(editorMouseListener); }