public BmgPanelExport(final BmgFrame fen, String name) {
        //Some settings
        this.filename = name;
        this.fen = fen;
        int nb = 10;
        String color = "red";

        //Label at first
        JPanel panFirst = new JPanel();
        panFirst.setPreferredSize(new Dimension(fen.width, fen.height / nb));
        final BmgLabel label = new BmgLabel("Ready to become brilliant ? Practice !", color);
        panFirst.add(label);

        //Button choose file
        JButton choosefile = new JButton("Browser..");

        choosefile.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                JFileChooser jfc = new JFileChooser();
                //FileNameExtensionFilter filter = new FileNameExtensionFilter("bmg");
                //jfc.setCurrentDirectory(new File("$HOME/Documents"));
                //jfc.setFileFilter(filter);
                String monFichier = "";
                String approve = "Enregistrer";
                int resultatEnregistrer = jfc.showDialog(jfc, approve);
                if (resultatEnregistrer == JFileChooser.APPROVE_OPTION) {
                    monFichier = jfc.getSelectedFile().toString();
                    if (monFichier.endsWith(".bmg") || monFichier.endsWith(".BMG")) {

                    } else {
                        //monFichier += ".bmg";
                    }
                }
                filename = monFichier;
                if (filename.equals("")) {
                    labelRes.setText("No file selected.");
                } else {
                    String[] monFichierSplit = monFichier.split("/");
                    String trueFileName = monFichierSplit[monFichierSplit.length - 1];

                    //Exercise exercise = new Exercise();
                    FileReader file;
                    try {
                        file = new FileReader(filename);
                        BufferedReader br = new BufferedReader(file);

                        System.out.println(br.toString());

                    } catch (FileNotFoundException ex) {
                        Logger.getLogger(BmgPanelPracticeFirst.class.getName()).log(Level.SEVERE, null, ex);
                    }

                    System.out.println(filename);

                    final Exercise exercise = Exercise.load(filename);
                    ex = exercise;

                    if (exercise == null) {
                        System.out.println("EXERCISE NULL");
                    }

                    String style = "style=\"color: blue; font-size: 12px;\"";
                    //Label with summary
                   labelRes.setText("<html><p style=\"color: green;font-size: 15px;\">Résumé de : " + trueFileName + "<br/><br/></p>"
                            + "<p><span " + style + ">Title : </span>" + exercise.getTitle() + "<br/></p>"
                            + "<p><span " + style + ">Type : </span>" + exercise.getType() + "<br/></p>"
                            + "<p><span " + style + ">Difficulty : </span>" + exercise.getDifficulty() + "<br/></p>"
                            + "<p><span " + style + ">Number of questions : </span>" + exercise.getNumberOfQuestions() + "<br/></p>"
                            + "</html>");

                }

            }
        });

        this.add(panFirst);

        JPanel panChoose = new JPanel();
        panChoose.setPreferredSize(new Dimension(fen.width, 100));
        panChoose.add(choosefile);
        this.add(panChoose);

        JPanel panSouth = new JPanel();
        panSouth.setPreferredSize(new Dimension(fen.width, 500));

        panSouth.add(labelRes);

        //Button GO
        buttonOk = new JButton("Exporter");
        //Listener
        buttonOk.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                actionExporter(ex);
            }
        });
        
        boutonExportPDF = new JButton("Exporter en PDF");
        boutonExportPDF.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                // On exporte en PDF
                actionExporterPDF(ex);
            }
        });
        
        panSouth.add(buttonOk);
        panSouth.add(boutonExportPDF);

        this.add(panSouth);

    }