private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        try {
            JFileChooser choose = new JFileChooser();
            choose.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            FileNameExtensionFilter filtre = new FileNameExtensionFilter("Fichier PDF","pdf");
            choose.setFileFilter(filtre);
            choose.setSelectedFile(new File("Simplexe.pdf"));

            if(choose.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)
            {
                System.out.println("Chemin d'enregistrement : "+choose.getSelectedFile().getPath());
                new CreateSimplexePdf().createPdf(choose.getSelectedFile().getPath()+"\\Simplexe.pdf",(min_radio.isSelected()?"Min Z = ":"Max Z = ")+fields.firstElement().getText(),init_contraintes,tables);
                
                if(JOptionPane.showConfirmDialog(this, "Fichier enregistré, souhaitez vous l'ouvrir ?")==JOptionPane.YES_OPTION)
                    Desktop.getDesktop().open(new File(choose.getSelectedFile().getPath()+"\\Simplexe.pdf"));
            }
            
        } catch (DocumentException ex) {
            Logger.getLogger(Fenetre.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Fenetre.class.getName()).log(Level.SEVERE, null, ex);
        }
    }