I am Working on a game where the user is a character who must avoid falling rocks. The game works fine until i try to play it again without restarting it. The problem occurs when the game over screen is displayed and i click on a PlayAgain button which has an action listener. In the actionPerformed() method i attempt to reset the game to play as if i had just started it. Instead the DataProc method runs and does not display anything to the GUI, as this is happening the GUI seems to be frozen on the GameOver screen.
I am a beginner at java, especially java swing, so any tips rather than just a solution to my problem would be appreciated.
Sorry for the large amount of code posted I'm not sure what is needed to answer my question.
heres the code: