A voir également:
- Java : problème de else if :-(
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Eclipse java - Télécharger - Langages
- Java runtime environment - Télécharger - Langages
2 réponses
lol, c'est quoi ces point virgules après tes if(condition) et avant l'ouverture { ...?
Je pense que tu devrais les otez, ca permettrait en effet de marcher correctement je pense...
essai donc et di moi.
if (e.getSource()== rechercher)
{
String testcategorie =(String)choixcategorie.getSelectedItem();
String testmarque =(String)choixmarque.getSelectedItem();
String testref =(String)choixref.getSelectedItem();
if((testcategorie.equals("/*Choix*/"))&&(testmarque.equals("/*Choix*/")) && (testref.equals("/*Choix*/")))
{
JOptionPane.showMessageDialog(null,"Vous n'avez rien selectionné ");
}
else if ((testcategorie.equals("/*Choix*/"))&&(testmarque.equals("/*Choix*/")) && (testref.equals("/*Choix*/")==false))
{
JOptionPane.showMessageDialog(null,"ref ");
}
}
++
Je pense que tu devrais les otez, ca permettrait en effet de marcher correctement je pense...
essai donc et di moi.
if (e.getSource()== rechercher)
{
String testcategorie =(String)choixcategorie.getSelectedItem();
String testmarque =(String)choixmarque.getSelectedItem();
String testref =(String)choixref.getSelectedItem();
if((testcategorie.equals("/*Choix*/"))&&(testmarque.equals("/*Choix*/")) && (testref.equals("/*Choix*/")))
{
JOptionPane.showMessageDialog(null,"Vous n'avez rien selectionné ");
}
else if ((testcategorie.equals("/*Choix*/"))&&(testmarque.equals("/*Choix*/")) && (testref.equals("/*Choix*/")==false))
{
JOptionPane.showMessageDialog(null,"ref ");
}
}
++