private void updateHeaderRow(){
  int headerRow=(int)headerRowSpinner.getValue();
  configuration.setHeaderRow(headerRow - 1);
  previewTable.repaint();
}

private void updateHeaderRow ( ) { int headerRow = ( int ) headerRowSpinner . getValue ( ) ; configuration . setHeaderRow ( headerRow - 1 ) ; previewTable . repaint ( ) ; }
sets the header row as defined in the headerrowspinner and repaints the table .
