So i made this game type program that restarts the game once you click on reset button but idk how to make it functional.. This is what i did but the only thing it does is creates a new java program of the game. It doesn't get rid of the old one or anything.. here is my code for restarting.. What codes should i add :/
button1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Tests();
}
});