public void matrixChanged(){
  m_tableModel.fireTableStructureChanged();
  m_classesField.setText("" + m_matrix.size());
}

public void matrixChanged ( ) { m_tableModel . fireTableStructureChanged ( ) ; m_classesField . setText ( "" + m_matrix . size ( ) ) ; }
responds to a change in structure of the matrix being edited .
