private void btnPlaybackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPlaybackActionPerformed
        File file = new File("data/" + txtFile.getText());
        if (file.exists()) {
            for (LinkKNN knn : knns) {
                knn.learnType((String) lstTypes.getSelectedValue());
            }
            Datasource.getInstance().playRecording(file);
            for (LinkKNN knn : knns) {
                knn.stopLearning();
            }
        }
        //Switches the Gui
        if (lstTypes.getSelectedIndex() < lstTypes.getModel().getSize()) {
            lstTypes.setSelectedIndex(lstTypes.getSelectedIndex() + 1);
        }
    }//GEN-LAST:event_btnPlaybackActionPerformed