private void updateSortingIcons(){
  for (  SortingType type : SortingType.values()) {
    SortingDirection direction=model.getSortingDirection(type);
    ImageIcon icon;
switch (direction) {
case DESCENDING:
      icon=ICON_ARROW_DOWN;
    break;
case ASCENDING:
  icon=ICON_ARROW_UP;
break;
case UNDEFINED:
icon=null;
break;
default :
icon=null;
}
switch (type) {
case NAME:
sortingLabelAttName.setIcon(icon);
break;
case TYPE:
sortingLabelAttType.setIcon(icon);
break;
case MISSING:
sortingLabelAttMissings.setIcon(icon);
break;
default :
sortingLabelAttName.setIcon(null);
sortingLabelAttType.setIcon(null);
sortingLabelAttMissings.setIcon(null);
}
}
}

private void updateSortingIcons ( ) { for ( SortingType type : SortingType . values ( ) ) { SortingDirection direction = model . getSortingDirection ( type ) ; ImageIcon icon ; switch ( direction ) { case DESCENDING : icon = ICON_ARROW_DOWN ; break ; case ASCENDING : icon = ICON_ARROW_UP ; break ; case UNDEFINED : icon = null ; break ; default : icon = null ; } switch ( type ) { case NAME : sortingLabelAttName . setIcon ( icon ) ; break ; case TYPE : sortingLabelAttType . setIcon ( icon ) ; break ; case MISSING : sortingLabelAttMissings . setIcon ( icon ) ; break ; default : sortingLabelAttName . setIcon ( null ) ; sortingLabelAttType . setIcon ( null ) ; sortingLabelAttMissings . setIcon ( null ) ; } } }
updates the sorting icons .
