Hi I am experimenting with my code, learning quite a bit about Layout managers, one way or another.
I have a BorderLayout for my main manager. This puts a JToolBar in the north zone. A Gridlayout JPanel in the west zone. A GridLayout JPanel in the center zone. A GridBagLayout JPanel in the east zone. A FlowLayout JPanel in the south zone.
When the program compiles and runs, it looks fine, room for improvement but okay for now. The problem is that there is a cancel JButton on the JPanel in the east zone. When this is pressed it resets the program to the state it started in.
The program does this, with one minor problem. When the program resets the JPanel in the south zone now sits lower than it did originally. Once one of the buttons in the JPanel in the west zone is pressed it aligns correctly again. It's just for the first stage of reinitialization of the application.
To be honest, I would imagine it would be easier for you to just run the code & see the error for yourself.
There are 5 classes, however I am quite sure it is the first class BarTill that needs altering.
BarTill
ChoicePanel
SubChoicesPanel
TillPanel
Details
I would be extremely grateful if some could run this and tell me why I have got this problem.
Many thanks, Dave.