intitleGroupJtf = new TextFieldBoT(20); addComponent(AMGWLayout,layoutConstraints,intitleGroupJtf,2,2,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(20,10,10,10)); AMGWFrame.getContentPane().add(intitleGroupJtf);
intituleGroupJtf = new TextFieldBoT(20); addComponent(AMGWLayout,layoutConstraints,intituleGroupJtf,2,2,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(20,10,10,10)); AMGWFrame.getContentPane().add(intituleGroupJtf);
    private void initAddModifyGroupWindow() {        JLabel formationGroupLabel = new JLabel("Formation correspondante :");        addComponent(AMGWLayout,layoutConstraints,formationGroupLabel,1,1,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(20,10,10,10));        AMGWFrame.getContentPane().add(formationGroupLabel);                /*formationGroupJcb = new JComboBox();         addComponent(AMGWLayout,layoutConstraints,formationGroupJcb,2,1,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(20,10,10,10));         AMGWFrame.getContentPane().add(formationGroupJcb);*/                JLabel group = new JLabel(MainFrame.getInstance().getFormationSelected().getHeading());        addComponent(AMGWLayout,layoutConstraints,group,2,1,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(20,10,10,10));        AMGWFrame.getContentPane().add(group);                        JLabel intitleGroupLabel = new JLabel("Intil du groupe :");        addComponent(AMGWLayout,layoutConstraints,intitleGroupLabel,1,2,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(20,10,10,10));        AMGWFrame.getContentPane().add(intitleGroupLabel);                intitleGroupJtf = new TextFieldBoT(20);        addComponent(AMGWLayout,layoutConstraints,intitleGroupJtf,2,2,GridBagConstraints.REMAINDER,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(20,10,10,10));        AMGWFrame.getContentPane().add(intitleGroupJtf);                                JButton ok = new JButton("OK");        ok.addActionListener(new ActionOk());        addComponent(AMGWLayout,layoutConstraints,ok,2,3,GridBagConstraints.RELATIVE,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(20,10,10,10));        AMGWFrame.getContentPane().add(ok);                JButton annuler = new JButton("Annuler");        annuler.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent arg0) {                AMGWFrame.dispose();            }        });        addComponent(AMGWLayout,layoutConstraints,annuler,3,3,GridBagConstraints.REMAINDER,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(20,10,10,10));        AMGWFrame.getContentPane().add(annuler);    }