Hi there, I'm new here and I'm hoping you can help
For a student project I am creating a sudoku game which uses a 2D array of integers called model and then a solving algorithm reads from this array, computes the solution and then updates a 2D array of JButtons called view which the user can enter numbers. Most of the the functions read from this array to update the "model" and then the view of JButtons is updated so the user can see.
I'm using persistance to store the model 2D integer array and then a load button reads the file and writes this back to the model
Whenever I click my load button my updateView method seems to update the view correctly and the user can see the loaded cells but if I do something else such as start a new game or click solve (which then reads from this array and solves) the console output seems to suggest everything is working fine but my 2D array of JButtons on screen do not.
The program behaves differently for some reason after clicking load and anything else I do does not update the view correctly
Is anyone able to help me? I can send you my code. I would really appreciate it if you could.