posted 22 years ago
Hi all;
Here is my dilemma. I am working on a GUI for a fictious pizza restaurant. I have check boxes for the toppings. Everytime a user selects a specific topping; the total number of toppings should increase by 1. If the user deselects a specific topping, it should decrease the total number of toppings by 1. I want the program to keep a running total of the number of toppings selected.
I'm not sure how to get started on this. I am using the ItemListener to listen for the checkboxes. Any help would be greatly appreciated.
For example: if the available toppings are pepperoni, sausage, and onions, and the user selects pepperoni and onions, the total number of toppings selected should display 2. Also each topping can only be added to the pizza one time.
I am just looking for a push in the right direction.
Thanks