void () { if (getValueIsAdjusting() && ScrollSource.SCROLLBAR.isInterpolationEnabled()) { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ChangeListener.class) { ChangeListener listener = (ChangeListener)listeners[i + 1]; // ignore listeners declared in different implementations of ScrollBarUI if (!listener.getClass().getName().contains("ScrollBarUI")) { if (changeEvent == null) changeEvent = new ChangeEvent(this); listener.stateChanged(changeEvent); } } } } else { super.fireStateChanged(); } }