Trouble with radio buttons...

I have a seperate .java file that create the radio buttons, and when one is clicked it is initialized to a number. In another file, i need to have it that if a user clicks on a specific radio button, specific items dont show up in a JOptionPane msg box. I am confused on how to do this...

this is where my radio buttons get initialized in the CustomerTypePanel.java:

// Logic ...

if (regular.isSelected())

return REGULAR_DISCOUNT;

elseif (student.isSelected())

return STUDENT_DISCOUNT;

elseif (employee.isSelected())

return EMPLOYEE_DISCOUNT;

else

return FACULTY_DISCOUNT;

and this is what I want to happen in the CustomerJobCalculator.java:

if (--USER IS NOT A REGULAR CUSTOMER--)

{

JOptionPane.showMessageDialog(null,

"Tentative Bill: " + money.format(tentativeTotal) +

"\nDiscount Amount: " + money.format(discountAmount) +

"\nDiscounted Bill: " + money.format(discountTotal) +

"\nApplicable Sales Tax: " + money.format(salesTaxTotal) +

"\nTotal Bill: " + money.format(finalTotal));

}

//If the user is a Regular customer, then the discount amount and

//discounted bill will NOT be displayed

else

{

JOptionPane.showMessageDialog(null,

"Tentative Bill: " + money.format(tentativeTotal) +

"\nApplicable Sales Tax: " + money.format(salesTaxTotal) +

"\nTotal Bill: " + money.format(finalTotal));

}

if anyone could help me out, I would appreciate it. Thanks

[2344 byte] By [Mark23a] at [2007-10-3 11:42:58]
# 1
So, whats going wrong? Im not sure I follow you.
CaptainMorgan08a at 2007-7-15 14:14:46 > top of Java-index,Java Essentials,Java Programming...
# 2
in the CustomerTypePanel.java file, If the user is a regular customer, and clicks the regular button, then in the CustomerJobCalculator.java a certain JOptionPane box would show up, not displaying any discount information. I am not sure on how to do that.
Mark23a at 2007-7-15 14:14:46 > top of Java-index,Java Essentials,Java Programming...
# 3
Any clue anyone?
Mark23a at 2007-7-15 14:14:46 > top of Java-index,Java Essentials,Java Programming...