AddModifyGroupWindow window = new AddModifyGroupWindow();
AddModifyGroupWindow window = new AddModifyGroupWindow(AddModifyGroupWindow.TYPE_ADD);
    public void actionPerformed(ActionEvent arg0) {        AddModifyGroupWindow window = new AddModifyGroupWindow();        window.show();                if (window.isOk()) {            Group group = new Group();            group.setHeading(window.getIntitule());                        group.setIdFormation(mainFrame.getFormationSelected().getIdFormation());                        try {                DaoManager.getGroupDao().addGroup(group);                                mainFrame.getModel().fireRefreshGroup(group, BoTModel.TYPE_ADD);                JOptionPane.showMessageDialog(null, "Ajout effectu avec succs", "Information", JOptionPane.INFORMATION_MESSAGE);            } catch (Exception e) {                JOptionPane.showMessageDialog(null, "Une erreur interne est survenue", "Erreur", JOptionPane.ERROR_MESSAGE);            }        }    }