elieoueiss / IFT215-elie

IFT215 project
0 stars 0 forks source link

project #2

Open elieoueiss opened 9 years ago

elieoueiss commented 9 years ago

ok estez , bel amount chou mna3mel la yotla3lna jaweb , lanno bess hot submit ma3am ysir chi

eddyghabachlcu commented 9 years ago

Commit your project from github and synch it, I will check it for you

eddyghabachlcu commented 9 years ago

First you must change the Amount variable type, you are using it as a String!!! Second You have to call the event actionPerformed on the submit button and inside it you have to call the method that calculates the result. To do this you can double click on the submit button (or right click and select actionPerformed event). I suggest you to read carefully what we used in the real estate project, it will help you a lot.

elieoueiss commented 9 years ago

d'accord le code dans le main est juste maintenant, il me manque quelque effor dans le code de design

eddyghabachlcu commented 9 years ago

très bien

elieoueiss commented 9 years ago

bonne annee dr.!! j'ai fait "event action performed" on submit button , j'ai recus un private void submitactionperformed mais il' est vide, comment je veux faire , to call the method that calculates the result ??

eddyghabachlcu commented 9 years ago

Bonne année. Tu dois maintenant à l'interieur de cet évènement créer une nouvelle instance de la classe en utilisant le constructeur, et ensuite tu appelles la méthide qui calcule le résultat. Regarde comment on a fait ca dans le projet Real Estate.

elieoueiss commented 9 years ago

j'ai regarde le real estate mais je n'ai pas compris qu est ce que je veux utiliser pour le faire(right click ...???????)quelle button ???

eddyghabachlcu commented 9 years ago

Fait un double clique sur le boutton Submit et il ouvre l'evenement action performed, la dessous tu ecris le code.

elieoueiss commented 9 years ago

ahh mois je doit ecrire le code dans le source design??

eddyghabachlcu commented 9 years ago

oui exactement comme on a fait en Real estate. Tu appelles a partir d'ici la classe java et ses methodes

elieoueiss commented 9 years ago

estez plz fik tchefle fi 3ende 3 (! ! ! ) bel "private javax.swing.JEditorPane amountPane;" w bel " public taxes(JEditorPane amountPane) " wbel " amountPane.setFont(co.getAmount());"

eddyghabachlcu commented 9 years ago

Elie, you deleted some critical sections of code from your project. I suggest you to delete the JFrame file and create a new one since the one you are using now is corrupted. Be careful next time.

elieoueiss commented 9 years ago

ok j'ai fait ce que tu m'a dit , tous est true maintenant mais quand je clique submit pas de result, il y a un truque quelque part peut etre ?? et merci pour votre information

eddyghabachlcu commented 9 years ago

Because you are not calling the method that should calculate the amount. Replace amountPane.setSelectionEnd(Nbkids); with amountPane.setText(String.valueOf(co.getAmount()));

eddyghabachlcu commented 9 years ago

In the getAmount() method, you should replace return 0 by return amount!!!!!!!!!!!!!!

elieoueiss commented 9 years ago

okay merci !!!!!