AddModifyGroupWindow window = new AddModifyGroupWindow();
AddModifyGroupWindow window = new AddModifyGroupWindow(AddModifyGroupWindow.TYPE_MODIFY);
    public void actionPerformed(ActionEvent arg0) {        Group group = mainFrame.getGroupSelected();        if (group == null) {            group = mainFrame.getModel().getTimetable().getGroup();            if (group == null)                return;        }        AddModifyGroupWindow window = new AddModifyGroupWindow();        window.setIntitule(group.getHeading());        window.show();                if (window.isOk()) {            group.setHeading(window.getIntitule());            try {                DaoManager.getGroupDao().modifyGroup(group);                                mainFrame.getModel().fireRefreshGroup(group, BoTModel.TYPE_MODIFY);                JOptionPane.showMessageDialog(null, "Modification effectue avec succs", "Information", JOptionPane.INFORMATION_MESSAGE);            } catch (Exception e) {                JOptionPane.showMessageDialog(null, "Une erreur interne est survenue", "Erreur", JOptionPane.ERROR_MESSAGE);            }        }    }