private void UpdateTotal() {
		double taxes, finalTotal;
		taxes = 0.00;
		finalTotal = 0.00;
		pizzaTotal = 0.00;
		/*
		 * check to see which radio button is checked
		 */
		if (rdbtnSmallPizza.isSelected()) {
			pizzaTotal = 8;
		} else if (rdbtnMediumPizza.isSelected()) {
			pizzaTotal = 10;
		} else if (rdbtnLargePizza.isSelected()) {
			pizzaTotal = 12;
		} else if (rdbtnXLargePizza.isSelected()) {
			pizzaTotal = 14;
		} else {
			/*
			 * Lets make the selection for the user if they don't pick a pizza
			 * size first, after all you can't pick toppings without a pizza
			 * size. Will also make the selection on mousing over the
			 * checkboxes.
			 */
			rdbtnMediumPizza.setSelected(true);
			pizzaTotal = 10;
		}
		/*
		 * for each loop to get get all that are checked, much easier and more
		 * efficient than keeping track of each check box
		 */
		for (int i = 0; i < PizzaToppings.getComponentCount(); i++) {
			JCheckBox checkBox = (JCheckBox) PizzaToppings.getComponent(i);
			if (checkBox.isSelected()) {
				pizzaTotal += 1;
			}
		}
		/*
		 * get totals
		 */
		taxes = pizzaTotal * .06;
		finalTotal = taxes + pizzaTotal;
		/*
		 * update labels for correct amounts, with a formatter to convert the
		 * value to a $$ or whatever your local currency is.
		 */
		NumberFormat formatter = NumberFormat.getCurrencyInstance();
		lblPizzaTotal.setText(formatter.format(pizzaTotal));
		lblTaxesTotal.setText(formatter.format(taxes));
		lblFinalTotal.setText(formatter.format(finalTotal));

	}