Is there any reason for a JFrame to not close after disposed statement?

11 Views Asked by At

One of my JFrame doesn't close after I implemented a dispose statement, this makes the program to open a new JFrame when the program is using the previously mention JFrame.

if (score.getStrikes() >= 3)
{
        score.setStrikes(0);
        score.setScore(0);
        GameOver.main(score);
        frmAnswer.dispose();
}
0

There are 0 best solutions below