I am using Java, Netbeans. So this is basically how it works: The person will select a Destination (which is in a Combo Box) and then they choose if its First Class or Business Class (which is in a Check Box).
The program should calculate how much it costs with the Destination and First/Business Class taken into consideration. So obviously First Class would be more expensive than Business Class. But, the program does not print the amount out?
if (Destination.getSelectedItem().equals("Johannesburg - OR Tambo International Airport") && FirstClass.isSelected()) { Total.setText("849-00"); } else if (Destination.getSelectedItem().equals("Johannesburg - OR Tambo International Airport") && BusinessClass.isSelected()) { Total.setText("500-00"); } Blockquote
Thank you in advance!
Aucun commentaire:
Enregistrer un commentaire