public void load(List<PolicyInformation> policyInformation){
  PolicyInformation[] policyInformationArray=policyInformation.toArray(new PolicyInformation[policyInformation.size()]);
  Arrays.sort(policyInformationArray,new PolicyInformationComparator());
  data=new Object[policyInformation.size()][1];
  int i=0;
  for (  PolicyInformation policyInfo : policyInformationArray) {
    data[i][0]=policyInfo;
    i++;
  }
  fireTableDataChanged();
}

public void load ( List < PolicyInformation > policyInformation ) { PolicyInformation [ ] policyInformationArray = policyInformation . toArray ( new PolicyInformation [ policyInformation . size ( ) ] ) ; Arrays . sort ( policyInformationArray , new PolicyInformationComparator ( ) ) ; data = new Object [ policyInformation . size ( ) ] [ 1 ] ; int i = 0 ; for ( PolicyInformation policyInfo : policyInformationArray ) { data [ i ] [ 0 ] = policyInfo ; i ++ ; } fireTableDataChanged ( ) ; }
load the policyinformationtablemodel with policy information .
