https://fahmidasclassroom.com/use-of-java-jframe-with-an-exit-button/
Use of Java JFrame with an exit button