private void btnExportAFDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportAFDActionPerformed
    JFileChooser saveFile = new JFileChooser();
    
    int selected = saveFile.showSaveDialog(this);
    if(selected == JFileChooser.APPROVE_OPTION){
        String path = saveFile.getSelectedFile().getAbsolutePath();
        try {
            AFManager.convertAFNtoAFD(path);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }    
}//GEN-LAST:event_btnExportAFDActionPerformed