protected void fireSwitchEvent(ChangeEvent evt) {
    Object[] listeners = listenerList.getListenerList();
    for(int i = 1; i < listeners.length; i += 2) {
      if(listeners[i - 1] == ChangeListener.class) {
        ((ChangeListener) listeners[i]).stateChanged(evt);
      }
    }
  }
protected void fireSwitchEvent ( ChangeEvent evt ) { Object [ ] listeners = listenerList . getListenerList ( ) ; for ( int i = 1 ; i < listeners . length ; i += 2 ) { if ( listeners [ i - 1 ] == ChangeListener . class ) { ( ( ChangeListener ) listeners [ i ] ) . stateChanged ( evt ) ; } } }
Fire the event to listeners

@param evt Event to fire