SyntaxFix
Write A Post
Hire A Developer
Questions
If you have multiple windows open and only want to close the one that was closed use JFrame.dispose().
JFrame.dispose().
If you want to close all windows and terminate the application use System.exit()
System.exit()