public void load(GeneralNames generalNames){
  GeneralName[] generalNamesArray=generalNames.getNames();
  data=new ArrayList<GeneralName>(Arrays.asList(generalNamesArray));
  Collections.sort(data,new GeneralNameComparator());
  fireTableDataChanged();
}

public void load ( GeneralNames generalNames ) { GeneralName [ ] generalNamesArray = generalNames . getNames ( ) ; data = new ArrayList < GeneralName > ( Arrays . asList ( generalNamesArray ) ) ; Collections . sort ( data , new GeneralNameComparator ( ) ) ; fireTableDataChanged ( ) ; }
load the generalnamestablemodel with general names .
