ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index;
ListDataEvent event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); ListDataListener[] listeners = getListDataListeners();
  protected void fireIntervalAdded(Object source, int startIndex, int endIndex)  {    // Variables    ListDataEvent event;    ListDataListener[] listeners;    ListDataListener listener;    int index;    // Create Event    event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED,                              startIndex, endIndex);    // Get Listeners    listeners = getListDataListeners();    // Process Listeners    for (index = 0; index < listeners.length; index++)      {        listener = listeners[index];        listener.intervalAdded(event);      }  }