@SuppressWarnings("unchecked")
	public FenetreFichier(final Portail p1, final Fichier fileModif,
			final Groupe gp) {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 379, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);

		JLabel lblFichier = new JLabel(fileModif.nom);
		lblFichier.setFont(new Font("Calibri", Font.BOLD, 25));
		lblFichier.setBounds(120, 11, 175, 35);
		contentPane.add(lblFichier);

		JLabel lblNom = new JLabel("Nom : ");
		lblNom.setBounds(25, 86, 46, 14);
		contentPane.add(lblNom);

		textField = new JTextField(fileModif.nom);
		textField.setBounds(81, 83, 86, 20);
		contentPane.add(textField);
		textField.setColumns(10);

		JButton btnNewButton = new JButton("V");
		btnNewButton.setBounds(131, 228, 50, 23);
		contentPane.add(btnNewButton);

		JButton btnNewButton_1 = new JButton("X");
		btnNewButton_1.setBounds(191, 228, 46, 23);
		contentPane.add(btnNewButton_1);

		final JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setBounds(55, 160, 112, 20);
		contentPane.add(comboBox_1);

		JLabel lblRelation = new JLabel("Relation");
		lblRelation.setBounds(81, 135, 62, 14);
		contentPane.add(lblRelation);

		JLabel lblFichier_1 = new JLabel("Fichier");
		lblFichier_1.setBounds(224, 135, 46, 14);
		contentPane.add(lblFichier_1);

		// Remplissage des ComboBox
		// Relation

		RelationFichier obj1 = gp.getRelation(fileModif);
		System.out.println("DEBUG OBJET = " + obj1);
		Object[] RelationArray = new Object[2];
		if (obj1 != null) {
			RelationArray[0] = obj1.getFichier2();
			RelationArray[1] = obj1.getRel().name();
		}

		comboBox_1.addItem("Aucune");
		comboBox_1.addItem(Relation.values()[0]);
		comboBox_1.addItem(Relation.values()[1]);
		comboBox_1.addItem(Relation.values()[2]);
		// comboBox_1.addItem(Relation.values()[3]);
		if (RelationArray[1] != null) {
			comboBox_1.setSelectedItem(Relation.valueOf(RelationArray[1]
					.toString()));
			;
		}

		// Liste des fichiers

		final JComboBox comboBox = new JComboBox();
		for ( int k = 0 ; k < gp.getListFichier().size() ; k++)
		{
			comboBox.addItem(gp.getListFichier().get(k));
		}
		comboBox.setBounds(204, 160, 120, 20);
		contentPane.add(comboBox);

		if (RelationArray[0] != null) {

			System.out.println("COMBO FICHIER = " +comboBox.getSelectedIndex());
			System.out.println(gp.getIndexByFile((Fichier)RelationArray[0]));
			comboBox.setSelectedIndex(gp.getIndexByFile((Fichier)RelationArray[0]));
			
			
		}

		btnNewButton.addActionListener(new ActionListener() {

			public void actionPerformed(ActionEvent e) {

				// gp.updateFichier(gp.getFichierById(fileModif.id),textField);
				gp.updateFichier(fileModif, textField);
				System.out.println(" Combo "+comboBox_1.getSelectedItem().toString() );
				if (!comboBox_1.getSelectedItem().toString().equals( "Aucune"))

				{

					fileModif.setRelationFichier(comboBox_1.getSelectedItem()
							.toString()
							+ ";;"
							+ comboBox.getSelectedItem().toString());
					gp.addRelation(fileModif, (Fichier)comboBox.getSelectedItem(), (Relation)comboBox_1.getSelectedItem());

				}

				setVisible(false);

			}
		});

		btnNewButton_1.addActionListener(new ActionListener() {

			public void actionPerformed(ActionEvent e) {

				setVisible(false);
				// p1.AfficheEnt(p1);

			}
		});

	}