public ListDataEvent(Object source,int type,int index0,int index1){
  super(source);
  this.type=type;
  this.index0=Math.min(index0,index1);
  this.index1=Math.max(index0,index1);
}

public ListDataEvent ( Object source , int type , int index0 , int index1 ) { super ( source ) ; this . type = type ; this . index0 = Math . min ( index0 , index1 ) ; this . index1 = Math . max ( index0 , index1 ) ; }
constructs a listdataevent object . if index0 is & gt ; index1 , index0 and index1 will be swapped such that index0 will always be & lt ; = index1 .
