Salut,
j'ai un petit programme tous simple, qui affiche des recettes, si l'utilisateur choisit autre chose, une JFrame lui averti que cette partie est en cour de developpment, mais si il choisit le bon , cette fenetre s'affiche quand meme, alor qu'elle est a false dans ce cas... je ne comprend pas

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
if (evt.getSource() == Valider)
		{
 
			if (this.Consulter.isSelected())
			{
				if (this.Recette.isSelected())
				{
 
					FenetreListerRecette IHM2 = new FenetreListerRecette();
					IHM2.setBounds(100, 100, 550, 300);
					IHM2.setVisible(true);
					IHM2.setTitle("Choix de la recette");
					IHM2.getContentPane();
					this.setVisible(false);
					newWindow.setVisible(false); 
				}
 
				if (this.Repas.isSelected())
				{
 
					newWindow.setVisible(true); 
				}
 
				if (this.Recette.isSelected())
				{
					newWindow.setVisible(true); 
				}
 
				if (this.Ingredient.isSelected())
				{
					newWindow.setVisible(true); 
				}
 
			}
 
			if (this.Ajouter.isSelected())
			{
				if (this.Repas.isSelected())
				{
					newWindow.setVisible(true); 
				}
 
				if (this.Recette.isSelected())
				{
					newWindow.setVisible(true); 
				}
 
				if (this.Ingredient.isSelected())
				{
					newWindow.setVisible(true); 
				}
			}
 
			if (this.Supprimer.isSelected())
			{
				if (this.Repas.isSelected())
				{
					newWindow.setVisible(true); 
				}
 
				if (this.Recette.isSelected())
				{
					newWindow.setVisible(true); 
				}
 
				if (this.Ingredient.isSelected())
				{
					newWindow.setVisible(true); 
				}
			}