private void btnTestAction() {

        File file = new File("data/" + txtFile.getText());
        if (file.exists()) {
            for (LinkKNN knn : knns) {
                knn.testType((String) lstTypes.getSelectedValue());
            }
            Datasource.getInstance().playRecording(file);
            for (LinkKNN knn : knns) {
                knn.stopTesting();
            }
        }
        if (lstTypes.getSelectedIndex() < lstTypes.getModel().getSize()) {
            lstTypes.setSelectedIndex(lstTypes.getSelectedIndex() + 1);
        }
    }