Ok so i am creating this program that when you click on the reset button, it closes the program and opens a new same program from starting however, I am not able to understand how to do it :/ Here is my code for button .. This code basically exits the first program but it doesn't open it again in a new application.
button1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
System.exit(0);
new Tests();
}
});