I want to make a button
that when clicked the application will close.
I tried all the ways to make it but I couldn't.
I tried to make it like that:
public void quit()
{
System.exit(0);
}
And it didn't work. And I also tried to make it like that:
public void quit()
{
finish();
}
And it also didn't work.
So please if anyone can help me, answer this question.
Thank you a lot.