Hi, i'm programming the game 'for on a row'. When someone makes for in a row I want to reset the game so you can start over. But I have a problem with calling the repaint method from another class.
Here is some code:
On line 50 in 'Vieropeenrij' I want to call the function 'nieuwSpel'. In this function I've put repaint() but this doesn't work.
At line 34 you create a new Bord instance, and that is the one you call the method on. That is not the Bord which is being displayed, so it is not the one which would be painted/repainted (or display the game's state). You need to get a reference to the Bord which is actually displayed - not create a new one.