private void ButtonRapportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ButtonRapportActionPerformed
        int idd = (int) jTable3.getModel().getValueAt(jTable3.getSelectedRow(), 0);
        String pattern = null;
        String path;
        FileNameExtensionFilter filter = new FileNameExtensionFilter("JASPER files", "jasper");
        JFileChooser chooser = new JFileChooser();
        chooser.setFileFilter(filter);
        int returnVal = chooser.showOpenDialog(this);
        chooser.setMultiSelectionEnabled(false);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            pattern = chooser.getSelectedFile().getPath();
        }
        FileNameExtensionFilter filterpath = new FileNameExtensionFilter("PDF files", "pdf");
        JFileChooser chooserpath = new JFileChooser();
        chooserpath.setFileFilter(filterpath);
        int returnSave = chooserpath.showSaveDialog(this);
        if (returnSave == JFileChooser.APPROVE_OPTION) {
            path = chooserpath.getSelectedFile().getPath();

            if (!path.contains("pdf")) {
                path = path + ".pdf";
                String a = "\\";
            }
            pattern = pattern.replace("\\", "\\" + "\\");
            path = path.replace("\\", "\\" + "\\");

            ReportCreator creator = new ReportCreator();
            int a = creator.CreateReportDeal(pattern, idd, path);
            if (a == 1) {
                File file = new File(path.toString());
                try {
                    Desktop.getDesktop().open(file);
                } catch (IOException ex) {
                    Logger.getLogger(InterfacePrincipale.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
    }//GEN-LAST:event_ButtonRapportActionPerformed