Here is the class which I am struggling with: SubChoicesPanel
There are other classes used which I'll put at the end. The class generates a CardLayout of JPanels. There are plus & minus buttons, as these are pressed the JLabel increments & decrements accordlingly. So far so good. The problem is that this panel then redraws another panel TillPanel and updates the tally accordingly. i.e. if the user selects bitter the JLabel incements 1 and the tally in BillPanel increases, the output isn't quite right. I think that my next step would be to make the arrays plus, minus etc into multiple arrays, this would help accesing them.
I am aware that this is a long piece of code & understand people not wanting to get involved in it. It might be easier to just run it to see what I mean.
Here are the other classes:
BillTill
ChoicePanel:
TillPanel:
Any constructive advice would be gratefully received.
Thanks, Dave.