georgesakiki / ift215-georges

project
0 stars 0 forks source link

coding #2

Open georgesakiki opened 9 years ago

georgesakiki commented 9 years ago

hi dct.eddy u say : "electrical engines are available only starting from 2014." i write in my code : if (productionYear = "2013" || "2012"){ engine (!electrical); }
why it's wrong ?

georgesakiki commented 9 years ago

hi dct.eddy que faut il faire pour que le "submit" button marche??

eddyghabachlcu commented 9 years ago

To solve the "electrical engine issue": One of the possible solution, in the lostFocus event of the text field you have to write a code similar to the following: if (txtField.getText().equals("2012") || txtField.getText().equals("2013")){ comboBox.removeItem("Electrical"); }

eddyghabachlcu commented 9 years ago

Pour que le submit button marche, il faut que tu appelles l'evenement qui fonctionne quand tu cliques sur le boutton --> "actionPerformed" et la dessous tu ecris le code convenable, regarde ce qu'on a fait dans le project Real Estate ca va t'aider