Here are my three classes so so far:
BarTill.java
ChoicesPanel.java
SubChoicesPanel.java
The class that is giving me bother is SubChoicesPanel. I want to construct 7 panels adding buttons to each of these panels using the loop and apply the labels. If you look at the code for ChoicesPanel you will a slightly more simplified version of what I am trying to do here which works fine. Because this time I am using two-dimensional arrays (arrays of arrays strictly speaking) this time I am not quite getting the desired results. The code currently throws a NullPointerException.
Can any of you please help?
If I have not mentioned something that I should have please let me know!
Thanks, Dave.
BarTill.java
ChoicesPanel.java
SubChoicesPanel.java
The class that is giving me bother is SubChoicesPanel. I want to construct 7 panels adding buttons to each of these panels using the loop and apply the labels. If you look at the code for ChoicesPanel you will a slightly more simplified version of what I am trying to do here which works fine. Because this time I am using two-dimensional arrays (arrays of arrays strictly speaking) this time I am not quite getting the desired results. The code currently throws a NullPointerException.
Can any of you please help?
If I have not mentioned something that I should have please let me know!
Thanks, Dave.