ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) listeners[i].valueChanged(evt);
fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting());
  protected void fireValueChanged(int firstIndex, int lastIndex,                                        boolean isAdjusting)  {    ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex,                                                    lastIndex, isAdjusting);    ListSelectionListener[] listeners = getListSelectionListeners();    for (int i = 0; i < listeners.length; ++i)      listeners[i].valueChanged(evt);  }