@Override
    protected void setRolloverTab(int index) {
        int oldIndex = getRolloverTab();
        super.setRolloverTab(index);

        if (oldIndex != index) {
            if (oldIndex != -1) {
                tabPane.repaint(getTabBounds(tabPane, oldIndex));
            }

            if (index != -1) {
                tabPane.repaint(getTabBounds(tabPane, index));
            }
        }
    }