@Override
    public void actionPerformed(ActionEvent e) {
        DBAccess = new DALObject();
        String name = "";
        do {
            name = new DialogBox(frame).getText();
        } while (!(name != null && !name.isEmpty() && !name.trim().isEmpty()));
        
        int TabTailleX = obj.getUpdatedTab().getX();
        int TabTailleY = obj.getUpdatedTab().getY();
        int actualStep = obj.getStep().getActualStepNumber();
        int StepTotal = obj.getStep().getStepNumber();
        String SaveString = "";
        Case[][] temp = obj.getUpdatedTab().getTab();
        for (int j = 0; j < temp[0].length; j++) {
            for (int i = 0; i < temp.length; i++) {
                SaveString += i + "," + j + "," + temp[i][j].toString() + ";";
            }
        }
        JOptionPane.showMessageDialog(frame, "Le programme va faire un sauvegarde de la grille actuelle !", "Information", JOptionPane.INFORMATION_MESSAGE);
        try {
            DBAccess.insertSave(name, TabTailleX, TabTailleY, StepTotal, actualStep, SaveString);
        } catch (SQLException ex) {
            Logger.getLogger(ExportToDataBase.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(frame, "Une erreur est survenue lors de l'enregistrement !\nRéesssayez plus tard",
                                                "Erreur d'enregistrement", JOptionPane.ERROR_MESSAGE);
        } finally {
            DBAccess.closeConnection();
        }
        DBAccess.closeConnection();
    }